From 8c408cb111ea4313e006b52583b7a0c7db750ca4 Mon Sep 17 00:00:00 2001 From: Florian Valeye Date: Tue, 13 Apr 2021 21:26:35 +0200 Subject: [PATCH] Change the default Delta timestamp to Nanoseconds for Arrow --- rust/src/delta_arrow.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/src/delta_arrow.rs b/rust/src/delta_arrow.rs index 26887f9356..0a68589832 100644 --- a/rust/src/delta_arrow.rs +++ b/rust/src/delta_arrow.rs @@ -92,8 +92,8 @@ impl TryFrom<&schema::SchemaDataType> for ArrowDataType { Ok(ArrowDataType::Date32) } "timestamp" => { - // Microsecond precision timestamp without a timezone. - Ok(ArrowDataType::Timestamp(TimeUnit::Microsecond, None)) + // Issue: https://github.com/delta-io/delta/issues/643 + Ok(ArrowDataType::Timestamp(TimeUnit::Nanosecond, None)) } s => Err(ArrowError::SchemaError(format!( "Invalid data type for Arrow: {}",