mihaibudiu commented on code in PR #4289:
URL: https://github.com/apache/calcite/pull/4289#discussion_r2038528682
##########
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:
If 'x' exists in the FROM, it is used from the FROM.
Only when lookup in the FROM fails it is made in the local SELECT.
--
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]