Skip to content

ES|QL COMPLETION operator throws NPE #129214

Closed
@benwtrent

Description

@benwtrent

Elasticsearch Version

main

Installed Plugins

No response

Java Version

bundled

OS Version

any

Problem Description

It is possible for the completion operator to throw an NPE. I am not 100% sure the exact circumstances, but the logs don't lie.

Steps to Reproduce

N/A

Logs (if relevant)

java.lang.NullPointerException
	at java.util.Objects.requireNonNull(Objects.java:220)
	at java.util.ImmutableCollections$List12.<init>(ImmutableCollections.java:565)
	at java.util.List.of(List.java:935)
	at org.elasticsearch.xpack.esql.inference.completion.CompletionOperatorRequestIterator.inferenceRequest(CompletionOperatorRequestIterator.java:61)
	at org.elasticsearch.xpack.esql.inference.completion.CompletionOperatorRequestIterator.next(CompletionOperatorRequestIterator.java:54)

Metadata

Metadata

Assignees

Labels

:Analytics/ES|QLAKA ESQL:SearchOrg/RelevanceLabel for the Search (solution/org) Relevance team>bugTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Team:Search - RelevanceThe Search organization Search Relevance teamTeam:SearchOrgMeta label for the Search Org (Enterprise Search)priority:highA label for assessing bug priority to be used by ES engineers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions