mihaibudiu commented on code in PR #4289:
URL: https://github.com/apache/calcite/pull/4289#discussion_r2036120904


##########
core/src/test/java/org/apache/calcite/test/SqlValidatorTest.java:
##########
@@ -6677,6 +6677,32 @@ public boolean isBangEqualAllowed() {
         .withConformance(lenient).fails("Column 'E' not found in any table");
   }
 
+  /** Test case for <a 
href="https://issues.apache.org/jira/browse/CALCITE-6939";>
+   * [CALCITE-6939] Add support for Lateral Column Alias</a>. */
+  @Test void testAliasInSelect() {
+    final SqlConformance withSelectAlias = new SqlAbstractConformance() {
+      @Override public boolean isSelectAlias() {
+        return true;
+      }
+    };
+
+    // Standard conformance
+    sql("select 1 AS x, ^x^ as Y")

Review Comment:
   I have added some SqlOperatorTests to show that this works end-to-end.



-- 
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]

Reply via email to