HappenLee commented on code in PR #13440:
URL: https://github.com/apache/doris/pull/13440#discussion_r1000451353


##########
be/src/vec/functions/array/function_array_difference.h:
##########
@@ -67,8 +67,12 @@ class FunctionArrayDifference : public IFunction {
         } else if (which.is_decimal()) {
             return arguments[0];
         }
-        return std::make_shared<DataTypeArray>(is_nullable ? 
make_nullable(return_type)
-                                                           : return_type);
+        if (return_type) {
+            return std::make_shared<DataTypeArray>(is_nullable ? 
make_nullable(return_type)
+                                                               : return_type);
+        } else {
+            return nullptr;

Review Comment:
   maybe need DCHECK or LOG_FATAL



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to