Skip to content

NPE in ESQL LIMIT with parameter #130908

@ivancea

Description

@ivancea

Since #128464

A query like ROW a=1 | LIMIT null ends up with:

java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "val" is null
        at org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.visitLimitCommand(LogicalPlanBuilder.java:407)

Same with:

{
  "query": "ROW a=1 | LIMIT ?",
  "params": [
    null
  ]
}

Metadata

Metadata

Assignees

Labels

:Analytics/ES|QLAKA ESQL>bugTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)low-riskAn open issue or test failure that is a low risk to future releases

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions