Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanc-n committed Nov 26, 2024
1 parent ea6f77a commit 2101112
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ impl<T: ArrowPrimitiveType, const NULLABLE: bool> GroupColumn
assert!(nulls.is_none(), "unexpected nulls in non nullable input");
}

let arr = PrimitiveArray::<T>::new(ScalarBuffer::from(group_values), nulls);
let arr = PrimitiveArray::<T>::new(ScalarBuffer::from(group_values), nulls)
.with_data_type(data_type.clone());
let array_ref = Arc::new(arr) as ArrayRef;

// Set timezone information for timestamp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ where
build_primitive(split, null_group)
}
};
let array_ref = Arc::new(array) as ArrayRef;
let array_ref = Arc::new(array.with_data_type(self.data_type.clone())) as ArrayRef;

let adjusted_array = adjust_output_array(&self.data_type, array_ref)
.expect("Failed to adjust array data type");
Expand Down

0 comments on commit 2101112

Please sign in to comment.