caicancai commented on code in PR #4289:
URL: https://github.com/apache/calcite/pull/4289#discussion_r2033551348
##########
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:
The SQL engine inside Databricks has been rewritten in C++, which is
different from the open source Spark. Maybe there are some changes in the
rewriting process, which are difficult for us to verify. Maybe we should focus
on the open source Spark version.
--
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]