From 6494ee6f3e2644d2e855702d378bd477a70b12e1 Mon Sep 17 00:00:00 2001 From: liyixin <601947961@qq.com> Date: Thu, 11 Apr 2024 16:43:08 +0800 Subject: [PATCH] fix duration conversion error --- parquet/src/arrow/schema/primitive.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/parquet/src/arrow/schema/primitive.rs b/parquet/src/arrow/schema/primitive.rs index 17dd7862f3dc..cc476b0ed15b 100644 --- a/parquet/src/arrow/schema/primitive.rs +++ b/parquet/src/arrow/schema/primitive.rs @@ -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,