Commit cd7a00b
authored
fix(9870): common expression elimination optimization, should always re-find the correct expression during re-write. (apache#9871)
* test(9870): reproducer of error with jumping traversal patterns in common-expr-elimination traversals
* refactor: remove the IdArray ordered idx, since the idx ordering does not always stay in sync with the updated TreeNode traversal
* refactor: use the only reproducible key (expr_identifer) for expr_set, while keeping the (stack-popped) symbol used for alias.
* refactor: encapsulate most of the logic within ExprSet, and delineate the expr_identifier from the alias symbol
* test(9870): demonstrate that the sqllogictests are now passing1 parent a23f507 commit cd7a00b
File tree
3 files changed
+214
-292
lines changed- datafusion
- expr/src/logical_plan
- optimizer/src
- sqllogictest/test_files
3 files changed
+214
-292
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2389 | 2389 | | |
2390 | 2390 | | |
2391 | 2391 | | |
2392 | | - | |
| 2392 | + | |
2393 | 2393 | | |
2394 | 2394 | | |
2395 | 2395 | | |
| |||
0 commit comments