nevi-me commented on a change in pull request #9612:
URL: https://github.com/apache/arrow/pull/9612#discussion_r593995897



##########
File path: rust/parquet/src/arrow/schema.rs
##########
@@ -583,48 +626,109 @@ impl ParquetTypeConverter<'_> {
     }
 
     fn from_int32(&self) -> Result<DataType> {
-        match self.schema.get_basic_info().converted_type() {
-            ConvertedType::NONE => Ok(DataType::Int32),
-            ConvertedType::UINT_8 => Ok(DataType::UInt8),
-            ConvertedType::UINT_16 => Ok(DataType::UInt16),
-            ConvertedType::UINT_32 => Ok(DataType::UInt32),
-            ConvertedType::INT_8 => Ok(DataType::Int8),
-            ConvertedType::INT_16 => Ok(DataType::Int16),
-            ConvertedType::INT_32 => Ok(DataType::Int32),
-            ConvertedType::DATE => Ok(DataType::Date32),
-            ConvertedType::TIME_MILLIS => 
Ok(DataType::Time32(TimeUnit::Millisecond)),
-            ConvertedType::DECIMAL => Ok(self.to_decimal()),
-            other => Err(ArrowError(format!(
-                "Unable to convert parquet INT32 logical type {}",
-                other
+        match (
+            self.schema.get_basic_info().logical_type(),

Review comment:
       Yeah, I can do it as a follow-up when I've completed the overall 2.6.0 
type support




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to