tmater commented on code in PR #4844:
URL: https://github.com/apache/calcite/pull/4844#discussion_r3199338846


##########
core/src/main/java/org/apache/calcite/sql/type/OperandTypes.java:
##########
@@ -554,6 +554,38 @@ public static SqlOperandTypeChecker variadic(
           .or(OperandTypes.family(SqlTypeFamily.VARIANT))
           .or(OperandTypes.family(SqlTypeFamily.ANY));
 
+  /**
+   * Operand type-checking strategy for the colon operator: first operand
+   * must be {@code VARIANT} (or {@code ANY}); the second operand is a
+   * path expression and is not type-checked.
+   */
+  public static final SqlOperandTypeChecker COLON =

Review Comment:
   Yes, validation runs before `SqlToRelConverter`, so by the time the 
convertlet could rewrite it to `ITEM`, the type check has already failed. The 
`skill:type` failing case in `SqlValidatorTest.java:1546` exercises it directly.
   



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