Skip to content

ES|QL: fix Page.equals()#136266

Merged
luigidellaquila merged 7 commits intoelastic:mainfrom
luigidellaquila:esql/page_equals
Oct 9, 2025
Merged

ES|QL: fix Page.equals()#136266
luigidellaquila merged 7 commits intoelastic:mainfrom
luigidellaquila:esql/page_equals

Conversation

@luigidellaquila
Copy link
Contributor

Two pages with positionCount=0 should be considered not equal if they have different number/type of blocks.

This change also makes equals() coherent with hashCode(), that already accounted for blocks

Fixes: #135977
Fixes: #135990

@elasticsearchmachine elasticsearchmachine added Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.3.0 labels Oct 9, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Contributor

@ivancea ivancea left a comment

Choose a reason for hiding this comment

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

LGTM! Do we know the reason why it was like that?

@luigidellaquila
Copy link
Contributor Author

Thanks folks!

Do we know the reason why it was like that?

I tracked it back to a commit from Feb 2023 and I briefly discussed it with Chris.
It was mostly a logical thing (two empty pages could be considered the same), but we couldn't remember a practical reason for it.

@luigidellaquila luigidellaquila enabled auto-merge (squash) October 9, 2025 10:08
@luigidellaquila luigidellaquila merged commit c8de545 into elastic:main Oct 9, 2025
34 checks passed
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.3.0

5 participants