mihaibudiu commented on code in PR #4289:
URL: https://github.com/apache/calcite/pull/4289#discussion_r2038528166
##########
core/src/main/java/org/apache/calcite/sql/validate/SqlConformance.java:
##########
@@ -102,6 +102,28 @@ public interface SqlConformance {
*/
boolean isGroupByAlias();
+ /**
+ * Value describing how to perform lookup for values defined in a SELECT
statement.
+ */
+ enum SelectAliasLookup {
+ /** Values defined in a SELECT statement are not visible within the
statement. */
+ UNSUPPORTED,
+ /** Values defined in a SELECT statement are visible to the right of their
definition. */
+ LEFT_TO_RIGHT,
Review Comment:
As I have commented in the JIRA, if you would do that, you would break all
existing queries that redefine columns that exist already. So I don't think any
database can afford to do that.
--
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]