Skip to content

Commit

Permalink
fix duration conversion error
Browse files Browse the repository at this point in the history
  • Loading branch information
Liyixin95 committed Apr 11, 2024
1 parent 36a6e51 commit 6494ee6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parquet/src/arrow/schema/primitive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ fn apply_hint(parquet: DataType, hint: DataType) -> DataType {
(DataType::Int32 | DataType::Int64, DataType::Timestamp(_, _)) => hint,
(DataType::Int32, DataType::Time32(_)) => hint,
(DataType::Int64, DataType::Time64(_)) => hint,
(DataType::Int64, DataType::Duration(_)) => hint,

// Date64 doesn't have a corresponding LogicalType / ConvertedType
(DataType::Int64, DataType::Date64) => hint,
Expand Down

0 comments on commit 6494ee6

Please sign in to comment.