Skip to content

Commit 982e1bb

Browse files
authored
[fix](function) fix error Agg Function histogram(boolean) is not implemented (#56398)
``` select_histogram_k0, sql: SELECT histogram(k0) FROM baseall java.sql.SQLException: errCode = 2, detailMessage = (127.0.0.1)[INTERNAL_ERROR]Agg Function histogram(boolean) is not implemented ```
1 parent 70ac9f7 commit 982e1bb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

be/src/vec/aggregate_functions/aggregate_function_histogram.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ AggregateFunctionPtr create_aggregate_function_histogram(const std::string& name
3939
const bool result_is_nullable,
4040
const AggregateFunctionAttr& attr) {
4141
assert_arity_range(name, argument_types, 1, 2);
42-
using creator = creator_with_type_list<TYPE_TINYINT, TYPE_SMALLINT, TYPE_INT, TYPE_BIGINT,
43-
TYPE_LARGEINT, TYPE_FLOAT, TYPE_DOUBLE, TYPE_DECIMAL32,
44-
TYPE_DECIMAL64, TYPE_DECIMAL128I, TYPE_DECIMAL256,
45-
TYPE_VARCHAR, TYPE_DATEV2, TYPE_DATETIMEV2>;
42+
using creator =
43+
creator_with_type_list<TYPE_BOOLEAN, TYPE_TINYINT, TYPE_SMALLINT, TYPE_INT, TYPE_BIGINT,
44+
TYPE_LARGEINT, TYPE_FLOAT, TYPE_DOUBLE, TYPE_DECIMAL32,
45+
TYPE_DECIMAL64, TYPE_DECIMAL128I, TYPE_DECIMAL256, TYPE_VARCHAR,
46+
TYPE_DATEV2, TYPE_DATETIMEV2>;
4647
if (argument_types.size() == 2) {
4748
return creator::create<HistogramWithInputParam, AggregateFunctionHistogramData>(
4849
argument_types, result_is_nullable, attr);

0 commit comments

Comments
 (0)