normanj-bitquill commented on code in PR #3797:
URL: https://github.com/apache/calcite/pull/3797#discussion_r1616412430
##########
core/src/main/java/org/apache/calcite/sql/util/SqlShuttle.java:
##########
@@ -135,6 +136,14 @@ public CallCopyingArgHandler(SqlCall call, boolean
alwaysCopy) {
if (newOperand != operand) {
update = true;
}
+
+ // Prevent nesting AS calls
+ if (i == 0 && expr instanceof SqlCall
Review Comment:
@YiwenWu I have reworked this to much more closely match what you describe
above.
--
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]