[Bug](function) fix function in get wrong result when input const column (#19791)

fix function in get wrong result when input const column
This commit is contained in:
Pxl
2023-05-22 10:58:29 +08:00
committed by GitHub
parent f57b6adba9
commit d64be9565d
66 changed files with 135 additions and 221 deletions

View File

@ -36,8 +36,6 @@ public:
bool is_variadic() const override { return false; }
size_t get_number_of_arguments() const override { return 2; }
bool use_default_implementation_for_constants() const override { return true; }
DataTypePtr get_return_type_impl(const DataTypes& arguments) const override {
DCHECK(is_array(arguments[0])) << arguments[0]->get_name();
DCHECK(is_array(arguments[1])) << arguments[1]->get_name();

View File

@ -41,8 +41,6 @@ public:
bool use_default_implementation_for_nulls() const override { return false; }
bool use_default_implementation_for_constants() const override { return true; }
ColumnNumbers get_arguments_that_are_always_constant() const override { return {1}; }
DataTypePtr get_return_type_impl(const DataTypes& arguments) const override {

View File

@ -64,8 +64,6 @@ public:
bool use_default_implementation_for_nulls() const override { return false; }
bool use_default_implementation_for_constants() const override { return true; }
size_t get_number_of_arguments() const override {
return get_variadic_argument_types_impl().size();
}

View File

@ -66,8 +66,6 @@ public:
bool is_variadic() const override { return true; }
bool use_default_implementation_for_constants() const override { return true; }
size_t get_number_of_arguments() const override { return 0; }
DataTypePtr get_return_type_impl(const DataTypes& arguments) const override {