Skip to content

Commit 61ae79f

Browse files
authored
Remove redundant type check in Avg (#7374)
1 parent 870857a commit 61ae79f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

datafusion/physical-expr/src/aggregate/average.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ impl Avg {
6565
name: impl Into<String>,
6666
data_type: DataType,
6767
) -> Self {
68-
// the internal sum data type of avg just support FLOAT64 and Decimal data type.
69-
assert!(matches!(
70-
data_type,
71-
DataType::Float64 | DataType::Decimal128(_, _) | DataType::Decimal256(_, _)
72-
));
73-
7468
let result_data_type = avg_return_type(&data_type).unwrap();
7569

7670
Self {

0 commit comments

Comments
 (0)