Commit 7804a25
Refactor QueryBuilderResolver Rewrite Logic (#119740)
* Refactor QueryBuilderResolver Rewrite Logic
This commit improves the rewrite logic by switching to reference comparison for termination checks.
While the existing implementation functions correctly, the rewrite contract is designed to compare references rather than performing a full object comparison, which is unnecessary.
Additionally, this change guarantees that only a single rewrite pass is executed per query builder.
* avoid getting the value
---------
Co-authored-by: Elastic Machine <[email protected]>1 parent 169cb44 commit 7804a25
File tree
1 file changed
+5
-8
lines changed- x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/session
1 file changed
+5
-8
lines changedLines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
162 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
163 | 164 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
| 165 | + | |
169 | 166 | | |
170 | 167 | | |
171 | 168 | | |
| |||
0 commit comments