Skip to content

[BUG] _id is not available in PPL where condition #2788

Description

@LantaoJin

What is the bug?
#639 reported the issue in SQL and addressed by #1456. But the problem is still existed in PPL.

How can one reproduce the bug?

POST _plugins/_ppl
{
"query": "source=my-index1 | where _id = 1"
}

SemanticCheckException was encountered

What is the expected behavior?
Allow metadata fields in PPL query, as same as SQL query.

What is your host/environment?

  • Version 2.15
  • Plugins SQL

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions