Commit 20b7bc3
committed
Restore Alias branch in expandProjectFields for IN/EXISTS subqueries
PR opensearch-project#5448 (parent commit b10d541) introduced SQL IN/EXISTS subquery
support that produces a Project AST whose project list contains Alias
expressions. The 'Lower structured search predicates' commit
(c18b11e) on this PR accidentally dropped the case Alias branch from
CalciteRelNodeVisitor.expandProjectFields, so the subquery's project
list hit the default arm and threw 'Unexpected expression type in
project list: Alias'.
Restoring the one-line branch fixes UnifiedQueryPlannerSqlV2Test
testInSubquery / testNotInSubquery / testExistsSubquery /
testNotExistsSubquery (the four macOS unit-test failures on this PR).
Signed-off-by: Kai Huang <ahkcs@amazon.com>1 parent 9583614 commit 20b7bc3
1 file changed
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
| 733 | + | |
733 | 734 | | |
734 | 735 | | |
735 | 736 | | |
| |||
0 commit comments