Commit 1fa25ae
fix(9870): common expression elimination optimization, should always re-find the correct expression during re-write. (#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 799be5e commit 1fa25ae
3 files changed
Lines changed: 214 additions & 292 deletions
File tree
- datafusion
- expr/src/logical_plan
- optimizer/src
- sqllogictest/test_files
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2368 | 2368 | | |
2369 | 2369 | | |
2370 | 2370 | | |
2371 | | - | |
| 2371 | + | |
2372 | 2372 | | |
2373 | 2373 | | |
2374 | 2374 | | |
| |||
0 commit comments