Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] PPL head limit and SQL limit offset throw exception #3102

Open
penghuo opened this issue Oct 23, 2024 · 1 comment
Open

[BUG] PPL head limit and SQL limit offset throw exception #3102

penghuo opened this issue Oct 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@penghuo
Copy link
Collaborator

penghuo commented Oct 23, 2024

What is the bug?

###
POST {{baseUrl}}/_plugins/_ppl
Content-Type: application/x-ndjson

{
  "query": "source = people"
}

###
POST {{baseUrl}}/_plugins/_ppl/_explain
Content-Type: application/x-ndjson

{
  "query": "source = people | head 1 from 1"
}
  • error message
{
  "error": {
    "reason": "Invalid SQL query",
    "details": "Validation Failed: 1: using [from] is not allowed in a scroll context;2: [size] cannot be [0] in a scroll context;",
    "type": "ActionRequestValidationException"
  },
  "status": 400
}

How can one reproduce the bug?

###
PUT {{baseUrl}}/_plugins/_query/settings
Content-Type: application/x-ndjson

{
  "transient" : {
    "plugins.query.size_limit" : 1
  }
}

###
PUT {{baseUrl}}/people/_settings
Content-Type: application/x-ndjson

{
  "index": {
    "max_result_window": 1
  }
}

What is the expected behavior?
No exception.

@penghuo penghuo added bug Something isn't working untriaged labels Oct 23, 2024
@dblock dblock removed the untriaged label Nov 11, 2024
@dblock
Copy link
Member

dblock commented Nov 11, 2024

[Catch All Triage - 1, 2, 3, 4]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants