Skip to content

ESQL: Fix extent reading when missing#140034

Merged
nik9000 merged 2 commits intoelastic:mainfrom
nik9000:esql_push_bounds_empty
Dec 29, 2025
Merged

ESQL: Fix extent reading when missing#140034
nik9000 merged 2 commits intoelastic:mainfrom
nik9000:esql_push_bounds_empty

Conversation

@nik9000
Copy link
Member

@nik9000 nik9000 commented Dec 29, 2025

Fixes a bug while reading spatial extents when the leaf doesn't contain any documents with a shape. These have a null BinaryDocValues and we can just read them as entirely null values like other readers.

Fixes a bug while reading spatial extents when the leaf doesn't contain
any documents with a shape. These have a `null` `BinaryDocValues` and we
can just read them as entirely `null` values like other readers.
@nik9000 nik9000 added >bug auto-backport Automatically create backport pull requests when merged :Analytics/ES|QL AKA ESQL v9.3.0 v9.4.0 labels Dec 29, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Dec 29, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@elasticsearchmachine
Copy link
Collaborator

Hi @nik9000, I've created a changelog YAML for you.

@nik9000 nik9000 enabled auto-merge (squash) December 29, 2025 18:45
@nik9000
Copy link
Member Author

nik9000 commented Dec 29, 2025

Thanks @GalLalouche.

@nik9000 nik9000 merged commit ce9121a into elastic:main Dec 29, 2025
35 checks passed
nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Dec 29, 2025
Fixes a bug while reading spatial extents when the leaf doesn't contain
any documents with a shape. These have a `null` `BinaryDocValues` and we
can just read them as entirely `null` values like other readers.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.3
elasticsearchmachine pushed a commit that referenced this pull request Dec 29, 2025
Fixes a bug while reading spatial extents when the leaf doesn't contain
any documents with a shape. These have a `null` `BinaryDocValues` and we
can just read them as entirely `null` values like other readers.
Kubik42 pushed a commit to Kubik42/elasticsearch that referenced this pull request Dec 30, 2025
Fixes a bug while reading spatial extents when the leaf doesn't contain
any documents with a shape. These have a `null` `BinaryDocValues` and we
can just read them as entirely `null` values like other readers.
@mouhc1ne
Copy link
Contributor

Thanks @nik9000 !
@craigtaverner and I believe this also fixes a few test failure we've been investigating yesterday. All failing on null doc values. E.g.: https://github.com/elastic/elasticsearch-serverless/issues/4980.

@craigtaverner
Copy link
Contributor

Wow! Thanks Nik. Mouhcine and I were also fixing this yesterday, but did not have failing tests in place before you got this done. I now have a failing integration test which this will also fix, and I'll make that PR a test-only PR now since the fix is already merged.

craigtaverner added a commit to craigtaverner/elasticsearch that referenced this pull request Dec 30, 2025
This test also fails when the indexes have 16 shards before the fix at elastic#140034
craigtaverner added a commit to craigtaverner/elasticsearch that referenced this pull request Dec 30, 2025
This test also fails when the indexes have 16 shards before the fix at elastic#140034
@nik9000
Copy link
Member Author

nik9000 commented Dec 30, 2025

Sorry for jumping on this without checking the assignees! Old habit back when we weren't piling on the test failures at the same time. I'll be more careful.

craigtaverner added a commit that referenced this pull request Dec 30, 2025
…0057)

This test also fails when the indexes have 16 shards before the fix at #140034
craigtaverner added a commit to craigtaverner/elasticsearch that referenced this pull request Dec 30, 2025
…stic#140057)

This test also fails when the indexes have 16 shards before the fix at elastic#140034
elasticsearchmachine pushed a commit that referenced this pull request Jan 6, 2026
…0057) (#140065)

This test also fails when the indexes have 16 shards before the fix at #140034
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL auto-backport Automatically create backport pull requests when merged >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.3.0 v9.4.0

5 participants