Skip to content

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

Closed

Description

@penghuo

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.

Activity

  1. added
    bug
    on Oct 23, 2024
  2. dblock commented on Nov 11, 2024

    @dblock
    Member
  3. added
    catch-all acknowledged
    on Jan 7, 2025
  4. added
    PPL
    on May 19, 2025
  5. removed
    catch-all acknowledged
    on May 30, 2025
  6. moved this from Not Started to Done in PPL Trackeron Jun 10, 2025
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