DaZuiZui commented on PR #17960: URL: https://github.com/apache/iotdb/pull/17960#issuecomment-4726909808
I have completed the implementation for Issue #17797 Part 2: supporting lateral column aliases in the table-model SELECT list. The PR is available here: https://github.com/apache/iotdb/pull/17960 This PR adds left-to-right SELECT-list alias resolution, keeps local input columns at higher priority than SELECT aliases, avoids rewriting qualified expressions and subqueries, preserves WHERE/HAVING semantics, and keeps the existing ORDER BY alias behavior. It also includes analyzer tests and a plan-level test to ensure reused aliases do not cause duplicated projection computation. I have verified the changes with: ./mvnw spotless:apply -pl iotdb-core/datanode ./mvnw -nsu test -pl iotdb-core/datanode -Dtest=SelectAliasReuseTest The PR is ready for review. It will close #17797 after being merged. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
