zhangstar333 commented on code in PR #31689: URL: https://github.com/apache/doris/pull/31689#discussion_r1521183959
########## be/src/vec/functions/function_utility.cpp: ########## @@ -70,13 +70,23 @@ class FunctionSleep : public IFunction { bool use_default_implementation_for_nulls() const override { return false; } + bool use_default_implementation_for_constants() const override { return false; } + Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, size_t result, size_t input_rows_count) const override { ColumnPtr& argument_column = block.get_by_position(arguments[0]).column; auto res_column = ColumnUInt8::create(); - if (auto* nullable_column = check_and_get_column<ColumnNullable>(*argument_column)) { + if (is_column_const(*argument_column)) { Review Comment: have set use_default_implementation_for_constants = false, so need deal with const column -- 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