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


##########
core/src/main/java/org/apache/calcite/sql/fun/SqlItemOperator.java:
##########
@@ -136,7 +137,8 @@ private static SqlSingleOperandTypeChecker 
getChecker(SqlCallBinding callBinding
     if (name.equals("ITEM")) {
       return "<ARRAY>[<INTEGER>]\n"
           + "<MAP>[<ANY>]\n"
-          + "<ROW>[<CHARACTER>|<INTEGER>]";
+          + "<ROW>[<CHARACTER>|<INTEGER>]\n"
+          + "<VARIANT>[<ANY>]";

Review Comment:
   Well, the variant value can be a MAP, and the map key can have any type, so 
it should be possible to have keys with other types. But perhaps that case 
requires first casting the variant to a MAP?
   
   Clearly, one of the two is wrong, though.
   
   Can you investigate what happens in systems like Snowflake?



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