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


##########
core/src/main/java/org/apache/calcite/sql/type/ReturnTypes.java:
##########
@@ -574,13 +574,13 @@ public static SqlCall stripSeparator(SqlCall call) {
                 RelDataType type =
                     opBinding.getOperandType(index)
                         .getComponentType();
-                assert type != null;
+                if (type == null) {
+                  return 
opBinding.getTypeFactory().createSqlType(SqlTypeName.NULL);
+                }
                 return type;
               }
 
-              @Override public int size() {
-                return opBinding.getOperandCount();
-              }
+              @Override public int size() { return 
opBinding.getOperandCount(); }

Review Comment:
   I reindented this line because checkStyle was upset about it.



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