Skip to content

Commit f2fc213

Browse files
committed
fix: replace ByteArray with FixedLenByteArray
1 parent 41fee88 commit f2fc213

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rust/parquet/src/arrow/converter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ impl DecimalArrayConverter {
9797
}
9898
}
9999

100-
impl Converter<Vec<Option<ByteArray>>, DecimalArray> for DecimalArrayConverter {
101-
fn convert(&self, source: Vec<Option<ByteArray>>) -> Result<DecimalArray> {
100+
impl Converter<Vec<Option<FixedLenByteArray>>, DecimalArray> for DecimalArrayConverter {
101+
fn convert(&self, source: Vec<Option<FixedLenByteArray>>) -> Result<DecimalArray> {
102102
let mut builder = DecimalBuilder::new(
103103
source.len(),
104104
self.precision as usize,
@@ -329,7 +329,7 @@ pub type FixedLenBinaryConverter = ArrayRefConverter<
329329
>;
330330

331331
pub type DecimalConverter =
332-
ArrayRefConverter<Vec<Option<ByteArray>>, DecimalArray, DecimalArrayConverter>;
332+
ArrayRefConverter<Vec<Option<FixedLenByteArray>>, DecimalArray, DecimalArrayConverter>;
333333

334334
pub struct FromConverter<S, T> {
335335
_source: PhantomData<S>,

0 commit comments

Comments
 (0)