Mryange commented on code in PR #66031:
URL: https://github.com/apache/doris/pull/66031#discussion_r3670410300
##########
be/src/exprs/function/function.cpp:
##########
@@ -195,16 +206,21 @@ Status
PreparedFunctionImpl::default_implementation_for_nulls(
return Status::OK();
}
- if (std::ranges::any_of(args, [&block](const auto& elem) {
- return block.get_by_position(elem).column->only_null();
+ if (!has_nullable_argument_type(block, args)) {
+ return Status::OK();
+ }
+
+ auto nullable_column_infos = build_nullable_column_infos(block, args);
Review Comment:
全部都是only null,那个路径大部分都会被fe给常量折叠了
--
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]