Skip to content

[8.x] ESQL: Fix AttributeSet#add() returning the opposite expected value (#117367)#117462

Merged
elasticsearchmachine merged 1 commit intoelastic:8.xfrom
ivancea:backport/8.x/pr-117367
Nov 25, 2024
Merged

[8.x] ESQL: Fix AttributeSet#add() returning the opposite expected value (#117367)#117462
elasticsearchmachine merged 1 commit intoelastic:8.xfrom
ivancea:backport/8.x/pr-117367

Conversation

@ivancea
Copy link
Copy Markdown
Contributor

@ivancea ivancea commented Nov 25, 2024

Backports the following commits to 8.x:

…lastic#117367)

Set/Collection#add() is supposed to return `true` if the collection changed (If it actually added something).
In this case, it must return if the old value is null.

Extracted from elastic#114317 (Where it's being used)
@ivancea ivancea added :Analytics/ES|QL AKA ESQL >non-issue auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Nov 25, 2024
@elasticsearchmachine elasticsearchmachine merged commit b251970 into elastic:8.x Nov 25, 2024
@ivancea ivancea deleted the backport/8.x/pr-117367 branch November 25, 2024 12:39
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-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants