alamb commented on code in PR #7774:
URL: https://github.com/apache/arrow-rs/pull/7774#discussion_r2198333115
##########
arrow-select/src/coalesce/primitive.rs:
##########
@@ -19,13 +19,15 @@ use crate::coalesce::InProgressArray;
use arrow_array::cast::AsArray;
use arrow_array::{Array, ArrayRef, ArrowPrimitiveType, PrimitiveArray};
use arrow_buffer::{NullBufferBuilder, ScalarBuffer};
-use arrow_schema::ArrowError;
+use arrow_schema::{ArrowError, DataType};
use std::fmt::Debug;
use std::sync::Arc;
/// InProgressArray for [`PrimitiveArray`]
#[derive(Debug)]
pub(crate) struct InProgressPrimitiveArray<T: ArrowPrimitiveType> {
+ /// Data type of the array
+ data_type: DataType,
Review Comment:
previously primitive arrays like TimestampNanosecond would lose the timezone
information. This fixes the issue
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]