Skip to content

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

Closed

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.

Activity

  1. added
    bug
    PPL
    on Feb 2, 2026
  2. songkant-aws commented on Apr 15, 2026

    @songkant-aws
    Collaborator

    Some other popular pipeline language renames all of fields including metadata fields. But our use case seems to prefer hiding them by default, which applies to other commands. Per our current requirement, a simple fix is proposed here: #5350

  3. moved this from Not Started to Done in PPL Trackeron Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    PPLbug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions