Skip to content

Commit 642202f

Browse files
committed
chore(query): fix distinct error
1 parent cb3803b commit 642202f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/query/functions-v2/src/aggregates/aggregate_combinator_distinct.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ use std::marker::PhantomData;
1818
use std::sync::Arc;
1919

2020
use common_arrow::arrow::bitmap::Bitmap;
21-
use common_exception::ErrorCode;
2221
use common_exception::Result;
2322
use common_expression::types::number::NumberColumnBuilder;
2423
use common_expression::types::DataType;
@@ -232,11 +231,7 @@ pub fn try_create(
232231
_s: PhantomData,
233232
_state: PhantomData,
234233
})),
235-
_ =>
236-
return Err(ErrorCode::BadDataValueType(format!(
237-
"AggregateSumFunction does not support type '{:?}'",
238-
arguments[0]
239-
))),
234+
_ => {}
240235
})
241236
}
242237
Ok(Arc::new(AggregateDistinctCombinator::<

0 commit comments

Comments
 (0)