Skip to content

ESQL: Fix NPE in bucket_sort on unresolvable sort path#149390

Open
GalLalouche wants to merge 4 commits into
elastic:mainfrom
GalLalouche:fix/bucket_npe
Open

ESQL: Fix NPE in bucket_sort on unresolvable sort path#149390
GalLalouche wants to merge 4 commits into
elastic:mainfrom
GalLalouche:fix/bucket_npe

Conversation

@GalLalouche
Copy link
Copy Markdown
Contributor

Treat null from resolveBucketValue as a missing value and let the existing gap_policy decide, matching how sibling pipeline aggregators (BucketScript, BucketMetrics, Derivative, etc.) handle the same case.

Closes #136418.

Treat `null` from `resolveBucketValue` as a missing value and let the
existing `gap_policy` decide, matching how sibling pipeline aggregators
(`BucketScript`, `BucketMetrics`, `Derivative`, etc.) handle the same
case.

Closes elastic#136418
@GalLalouche GalLalouche added >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) :Analytics/ES|QL AKA ESQL labels May 19, 2026
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

🔍 Preview links for changed docs

⏳ Building and deploying preview... View progress

This comment will be updated with preview links when the build is complete.

@github-actions
Copy link
Copy Markdown
Contributor

ℹ️ Important: Docs version tagging

👋 Thanks for updating the docs! Just a friendly reminder that our docs are now cumulative. This means all 9.x versions are documented on the same page and published off of the main branch, instead of creating separate pages for each minor version.

We use applies_to tags to mark version-specific features and changes.

Expand for a quick overview

When to use applies_to tags:

✅ At the page level to indicate which products/deployments the content applies to (mandatory)
✅ When features change state (e.g. preview, ga) in a specific version
✅ When availability differs across deployments and environments

What NOT to do:

❌ Don't remove or replace information that applies to an older version
❌ Don't add new information that applies to a specific version without an applies_to tag
❌ Don't forget that applies_to tags can be used at the page, section, and inline level

🤔 Need help?

Treat `null` from `resolveBucketValue` as a missing value and let the
existing `gap_policy` decide, matching how sibling pipeline aggregators
(`BucketScript`, `BucketMetrics`, `Derivative`, etc.) handle the same
case.

Closes elastic#136418
@MattAlp
Copy link
Copy Markdown
Contributor

MattAlp commented May 19, 2026

The release tests are likely failing due to not being up-to-date, red herring from yesterday's CI PR

Copy link
Copy Markdown
Contributor

@julian-elastic julian-elastic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GalLalouche GalLalouche enabled auto-merge (squash) May 19, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SearchPhaseExecutionException caused by NPE in BucketSortPipelineAggregator

4 participants