Skip to content

[BUG] rename with wildcard should not apply on hidden fields #5099

@LantaoJin

Description

@LantaoJin

What is the bug?
search source=%s | rename * as old_*

    JSONObject result =
        executeQuery(String.format("search source=%s | rename * as old_*", TEST_INDEX_DOG_REMOTE));
    verifyColumn(
        result,
        columnName("old_dog_name"),
        columnName("old_holdersName"),
        columnName("old_age"),
        columnName("old__id"),
        columnName("old__index"),
        columnName("old__score"),
        columnName("old__maxscore"),
        columnName("old__sort"),
        columnName("old__routing"));

What is the expected behavior?

    JSONObject result =
        executeQuery(String.format("search source=%s | rename * as old_*", TEST_INDEX_DOG_REMOTE));
    verifyColumn(
        result,
        columnName("old_dog_name"),
        columnName("old_holdersName"),
        columnName("old_age"));

What is your host/environment?

  • Version 3.5.0
  • Plugins

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
Add any other context about the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PPLPiped processing languagebugSomething isn't working

    Type

    No type

    Projects

    Status

    Not Started

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions