caicancai commented on code in PR #3746:
URL: https://github.com/apache/calcite/pull/3746#discussion_r1548792006


##########
testkit/src/main/java/org/apache/calcite/test/SqlOperatorTest.java:
##########
@@ -7126,6 +7126,9 @@ void checkRegexpExtract(SqlOperatorFixture f0, 
FunctionAlias functionAlias) {
         "Cannot apply 'ARRAYS_OVERLAP' to arguments of type 'ARRAYS_OVERLAP\\("
             + "<INTEGER ARRAY>, <BOOLEAN>\\)'. Supported form\\(s\\): 
'ARRAYS_OVERLAP\\("
             + "<EQUIVALENT_TYPE>, <EQUIVALENT_TYPE>\\)'", false);
+    f.checkNull("arrays_overlap(null, null)");

Review Comment:
   @mihaibudiu I tested it on the spark master branch. It seems that the 
parameters in arrays_overlap are not allowed to be null, which will cause the 
program to crash.
   
   Is this a bug in spark sql?



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