Skip to content

ES|QL: assertion error with SAMPLE #135336

@luigidellaquila

Description

@luigidellaquila

The generative tests produced a failure running a query with SAMPLE

./gradlew ":x-pack:plugin:esql:qa:server:single-node:javaRestTest" --tests "org.elasticsearch.xpack.esql.qa.single_node.GenerativeIT.test" -Dtests.seed=27739FAAF85B48CC -Dtests.locale=sv-FI -Dtests.timezone=America/St_Lucia -Druntime.java=25 |  
from clientips,airpor*,cartesian_multipolygons_no_doc_values | SAMPLE 0.2406132600547135 | rename type AS `wnjjoGVKpEpQ`, `city_location` AS `abbrev`, `id` AS LPfkYqwcQ
java.lang.AssertionError: 23
	at org.elasticsearch.compute.lucene.LuceneSourceOperator.getCheckedOutput(LuceneSourceOperator.java:299)
	at org.elasticsearch.compute.lucene.LuceneOperator.getOutput(LuceneOperator.java:145)
	at org.elasticsearch.compute.operator.Driver.runSingleLoopIteration(Driver.java:272)
	at org.elasticsearch.compute.operator.Driver.run(Driver.java:186)
	at org.elasticsearch.compute.operator.Driver$1.doRun(Driver.java:420)
	at org.elasticsearch.server@9.2.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)
	at org.elasticsearch.compute.operator.DriverScheduler$1.doRun(DriverScheduler.java:57)
	at org.elasticsearch.server@9.2.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)
	at org.elasticsearch.server@9.2.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:35)
	at org.elasticsearch.server@9.2.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:1067)
	at org.elasticsearch.server@9.2.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
	at java.base/java.lang.Thread.run(Thread.java:1474)\n"}

https://gradle-enterprise.elastic.co/s/gqp34fnevbid6

The failure is not deterministic, I couldn't manage to reproduce it locally

Metadata

Metadata

Assignees

Labels

:ml/ES|QLML Commands in ES|QL e.g. CATEGORIZE, SAMPLE, CHANGE_POINT etc...>bugTeam:MLMeta label for the ML teammedium-riskAn open issue or test failure that is a medium risk to future releases

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