Skip to content

Commit 0ffec36

Browse files
committed
update
1 parent 27fe18b commit 0ffec36

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

be/src/vec/aggregate_functions/aggregate_function_min_max.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
#include "vec/aggregate_functions/aggregate_function_min_max.h"
2222

23-
#include "runtime/define_primitive_type.h"
2423
#include "vec/aggregate_functions/aggregate_function_simple_factory.h"
2524
#include "vec/aggregate_functions/factory_helpers.h"
2625
#include "vec/aggregate_functions/helpers.h"
@@ -102,10 +101,10 @@ AggregateFunctionPtr create_aggregate_function_single_value_any_value_function(
102101
}
103102
const DataTypePtr& argument_type = remove_nullable(argument_types[0]);
104103
WhichDataType which(argument_type);
105-
if (which.idx == TypeIndex::Array || which.idx == TypeIndex::MAP ||
106-
which.idx == TypeIndex::STRUCT || which.idx == TypeIndex::AGG_STATE ||
107-
which.idx == TypeIndex::OBJECT || which.idx == TypeIndex::HLL ||
108-
which.idx == TypeIndex::QUANTILE_STATE) {
104+
if (which.idx == TypeIndex::Array || which.idx == TypeIndex::Map ||
105+
which.idx == TypeIndex::Struct || which.idx == TypeIndex::AggState ||
106+
which.idx == TypeIndex::BitMap || which.idx == TypeIndex::HLL ||
107+
which.idx == TypeIndex::QuantileState) {
109108
return creator_without_type::create<
110109
AggregateFunctionsSingleValue<SingleValueDataComplexType>>(argument_types,
111110
result_is_nullable);

0 commit comments

Comments
 (0)