Commit b251970
authored
ESQL: Fix AttributeSet#add() returning the opposite expected value (elastic#117367) (elastic#117462)
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)1 parent 74133b5 commit b251970
File tree
2 files changed
+2
-2
lines changed- x-pack/plugin
- esql-core/src/main/java/org/elasticsearch/xpack/esql/core/expression
- ql/src/main/java/org/elasticsearch/xpack/ql/expression
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments