Skip to content

Commit 8e7159e

Browse files
authored
Merge pull request #1 from alamb/alamb/missing_decimal
Add missing data type
2 parents 079942c + 76ec4f9 commit 8e7159e

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

datafusion/core/tests/fuzz_cases/aggregation_fuzzer/data_generator.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,7 @@ impl DatasetGeneratorConfig {
8787
.iter()
8888
.filter_map(|d| {
8989
if d.column_type.is_numeric()
90-
&& !matches!(
91-
d.column_type,
92-
DataType::Float32
93-
| DataType::Float64
94-
| DataType::Decimal128(_, _)
95-
)
90+
&& !matches!(d.column_type, DataType::Float32 | DataType::Float64)
9691
{
9792
Some(d.name.as_str())
9893
} else {

datafusion/physical-plan/src/aggregates/group_values/multi_group_by/primitive.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,10 @@ impl<T: ArrowPrimitiveType, const NULLABLE: bool> GroupColumn
200200

201201
let first_n_nulls = if NULLABLE { self.nulls.take_n(n) } else { None };
202202

203-
Arc::new(PrimitiveArray::<T>::new(
204-
ScalarBuffer::from(first_n),
205-
first_n_nulls,
206-
))
203+
Arc::new(
204+
PrimitiveArray::<T>::new(ScalarBuffer::from(first_n), first_n_nulls)
205+
.with_data_type(self.data_type.clone()),
206+
)
207207
}
208208
}
209209

0 commit comments

Comments
 (0)