Closed LantaoJin closed 2 weeks ago
Without this fixing, q21 in TPCH couldn't be rewritten to PPL. Link https://github.com/opensearch-project/opensearch-spark/pull/830
@LantaoJin also plz resolve conflicts...
Conflicts is related to imports. CI tests succeed with the related files. Merging to main.
Description
Imaging a case as following: Assume table1, table2, and table3 all contain a column
id
.To rewrite above SQL query to PPL query, we will get
The PPL query throws an exception with message:
It because the required left side alias
l1
overrides the table aliast1
andt2
.Its logical plan looks
Check #857 for details
Related Issues
Resolves #857
Check List
--signoff
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.