Skip to content

Commit

Permalink
Merge pull request #1 from alamb/alamb/missing_decimal
Browse files Browse the repository at this point in the history
Add missing data type
  • Loading branch information
jonathanc-n authored Dec 3, 2024
2 parents 079942c + 76ec4f9 commit 8e7159e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,7 @@ impl DatasetGeneratorConfig {
.iter()
.filter_map(|d| {
if d.column_type.is_numeric()
&& !matches!(
d.column_type,
DataType::Float32
| DataType::Float64
| DataType::Decimal128(_, _)
)
&& !matches!(d.column_type, DataType::Float32 | DataType::Float64)
{
Some(d.name.as_str())
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@ impl<T: ArrowPrimitiveType, const NULLABLE: bool> GroupColumn

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

Arc::new(PrimitiveArray::<T>::new(
ScalarBuffer::from(first_n),
first_n_nulls,
))
Arc::new(
PrimitiveArray::<T>::new(ScalarBuffer::from(first_n), first_n_nulls)
.with_data_type(self.data_type.clone()),
)
}
}

Expand Down

0 comments on commit 8e7159e

Please sign in to comment.