You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/04/23 18:30:28 UTC

[GitHub] [arrow-rs] tustvold commented on a diff in pull request #1612: Update datatypes in parquet::basic::LogicalType

tustvold commented on code in PR #1612:
URL: https://github.com/apache/arrow-rs/pull/1612#discussion_r856968984


##########
parquet/src/arrow/schema.rs:
##########
@@ -678,20 +678,20 @@ impl ParquetTypeConverter<'_> {
                 (32, false) => Ok(DataType::UInt32),
                 _ => Err(ArrowError(format!(
                     "Cannot create INT32 physical type from {:?}",
-                    t
+                    self.schema.get_basic_info().logical_type(), 

Review Comment:
   You could use `t @ LogicalType::Integer { ... }` in the match expression, so that you can use `t` here



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org