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 in Dataricks has been rewritten using CPP, which is different
from the open source Spark. Perhaps there are some changes in the rewriting
process, or there may be problems with the Spark documentation, which is
difficult for us to verify. Perhaps 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]