Skip to content

[BUG] QueryShardException[failed to create query: field expansion for [*] matches too many fields, limit: 1024, got: 1572] #5067

@Hailong-am

Description

@Hailong-am

What is the bug?
When i accidentally run an incorrect PPL command, it doesn't report PPL syntax error instead of it reporting query exception

POST _plugins/_ppl/
{
  "query": "source source=train-ticket-metrics-81 | head 10"
}

"{\n \"error\": {\n \"reason\": \"There was internal problem at backend\",\n \"details\": \"java.sql.SQLException: exception while executing query: Failed to fetch data from the index: the background task failed or interrupted.\\n Inner error: Failed to execute phase [query], all shards failed; shardFailures {[R3azv5VmSbWa-Pduq7IN8A][train-ticket-metrics-81][0]: RemoteTransportException[[bcd07463160c][10.118.165.75:9310][indices:data/read/search[phase/query]]]; nested: QueryShardException[failed to create query: field expansion for [*] matches too many fields, limit: 1024, got: 1572]; nested: IllegalArgumentException[field expansion for [*] matches too many fields, limit: 1024, got: 1572]; }\",\n \"type\": \"RuntimeException\"\n },\n \"status\": 500\n}"

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

What is the expected behavior?

syntax error reported

What is your host/environment?

  • OS: [e.g. iOS]
  • Version [e.g. 22]
  • Plugins

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

Do you have any additional context?

The index contains 1572 fileds

Metadata

Metadata

Assignees

No one assigned

    Labels

    PPLPiped processing languagebugSomething isn't workingerror-experienceIssues related to how we handle failure cases in the plugin.

    Type

    No type

    Projects

    Status

    Not Started

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions