caicancai commented on code in PR #4289:
URL: https://github.com/apache/calcite/pull/4289#discussion_r2033568451
##########
core/src/main/java/org/apache/calcite/sql/validate/SqlConformance.java:
##########
@@ -102,6 +102,16 @@ public interface SqlConformance {
*/
boolean isGroupByAlias();
+ /**
+ * Whether to allow aliases from the {@code SELECT} clause to be used as
+ * column names in the same {@code SELECT} clause.
+ * E.g., SELECT 1 as X, X+1 as Y;
+ * Name lookup considers an identifier in the same SELECT only
+ * if other lookups failed.
+ * Supported by Spark, Snowflake, BigQuery.
Review Comment:
I see. @NobiGo Which version of Spark did you verify this on? Can you tell
me? I can verify this on DataRisks later.
--
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]