Skip to content

ESQL: multi_match after lookup join with a FALSE where results in AssertionError #144329

@astefan

Description

@astefan

Description

This query results in an AssertionError and the JVM is killed which means that any other query will not run from that suite and the generative testing infra will stop and get muted.

from sample_data 
| where false
| lookup join message_types_lookup on message 
| where multi_match("Connection error", message) OR type like "Success"

results in

exiting java.lang.AssertionError: LuceneQueryEvaluator requires shard information
        at org.elasticsearch.compute.lucene.query.LuceneQueryEvaluator.<init>(LuceneQueryEvaluator.java:58)
        at org.elasticsearch.compute.lucene.query.LuceneQueryExpressionEvaluator.<init>(LuceneQueryExpressionEvaluator.java:35)
        at org.elasticsearch.compute.lucene.query.LuceneQueryExpressionEvaluator$Factory.get(LuceneQueryExpressionEvaluator.java:76)
        at org.elasticsearch.xpack.esql.evaluator.EvalMapper$BooleanLogic$1.get(EvalMapper.java:185)
        at org.elasticsearch.compute.operator.FilterOperator$FilterOperatorFactory.get(FilterOperator.java:25)
        at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner$PhysicalOperation.lambda$operators$0(LocalExecutionPlanner.java:1501)
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:214)
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1716)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:570)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:560)
        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:153)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:176)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:632)
        at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner$PhysicalOperation.operators(LocalExecutionPlanner.java:1501)
        at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner$DriverSupplier.apply(LocalExecutionPlanner.java:1633)
        at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner$LocalExecutionPlan.createDrivers(LocalExecutionPlanner.java:1693)
        at org.elasticsearch.xpack.esql.plugin.ComputeService.runCompute(ComputeService.java:1034)
        at org.elasticsearch.xpack.esql.plugin.ComputeService.executePlan(ComputeService.java:561)
        at org.elasticsearch.xpack.esql.plugin.ComputeService.execute(ComputeService.java:380)

Metadata

Metadata

Assignees

Labels

:Analytics/ES|QLAKA ESQL>bugTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)priority:highA label for assessing bug priority to be used by ES engineers

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions