@@ -124,7 +124,7 @@ impl ColumnReader {
124124 match desc. physical_type ( ) {
125125 PhysicalType :: BOOLEAN => typed_reader ! ( BoolColumnReader , Boolean ) ,
126126 PhysicalType :: INT32 => {
127- if let Some ( ref logical_type) = desc. logical_type ( ) {
127+ if let Some ( ref logical_type) = desc. logical_type_ref ( ) {
128128 match logical_type {
129129 lt @ LogicalType :: Integer {
130130 bit_width,
@@ -282,7 +282,7 @@ impl ColumnReader {
282282 }
283283 }
284284 PhysicalType :: INT64 => {
285- if let Some ( ref logical_type) = desc. logical_type ( ) {
285+ if let Some ( ref logical_type) = desc. logical_type_ref ( ) {
286286 match logical_type {
287287 lt @ LogicalType :: Integer {
288288 bit_width,
@@ -331,19 +331,19 @@ impl ColumnReader {
331331 None
332332 } ;
333333 match unit {
334- ParquetTimeUnit :: MILLIS ( _ ) => {
334+ ParquetTimeUnit :: MILLIS => {
335335 typed_reader ! (
336336 Int64TimestampMillisColumnReader ,
337337 ArrowDataType :: Timestamp ( time_unit, time_zone)
338338 )
339339 }
340- ParquetTimeUnit :: MICROS ( _ ) => {
340+ ParquetTimeUnit :: MICROS => {
341341 typed_reader ! (
342342 Int64TimestampMicrosColumnReader ,
343343 ArrowDataType :: Timestamp ( time_unit, time_zone)
344344 )
345345 }
346- ParquetTimeUnit :: NANOS ( _ ) => {
346+ ParquetTimeUnit :: NANOS => {
347347 typed_reader ! (
348348 Int64TimestampNanosColumnReader ,
349349 ArrowDataType :: Int64
@@ -390,7 +390,7 @@ impl ColumnReader {
390390
391391 PhysicalType :: DOUBLE => typed_reader ! ( DoubleColumnReader , Float64 ) ,
392392 PhysicalType :: BYTE_ARRAY => {
393- if let Some ( logical_type) = desc. logical_type ( ) {
393+ if let Some ( logical_type) = desc. logical_type_ref ( ) {
394394 match logical_type {
395395 LogicalType :: String => typed_reader ! ( StringColumnReader , Utf8 ) ,
396396 // https://github.com/apache/parquet-format/blob/master/LogicalTypes.md
@@ -403,13 +403,13 @@ impl ColumnReader {
403403 }
404404 }
405405 PhysicalType :: FIXED_LEN_BYTE_ARRAY => {
406- if let Some ( logical_type) = desc. logical_type ( ) {
406+ if let Some ( logical_type) = desc. logical_type_ref ( ) {
407407 match logical_type {
408408 LogicalType :: Decimal {
409409 precision,
410410 scale : _,
411411 } => {
412- if !use_decimal_128 && precision <= DECIMAL_MAX_INT_DIGITS {
412+ if !use_decimal_128 && precision <= & DECIMAL_MAX_INT_DIGITS {
413413 typed_reader ! ( FLBADecimal32ColumnReader , Int32 )
414414 } else if !use_decimal_128
415415 && promotion_info. precision <= DECIMAL_MAX_LONG_DIGITS
0 commit comments