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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org