From b0fa5415b6192ebfa7470db0dca1373b6cb74d44 Mon Sep 17 00:00:00 2001 From: Brandon <14164987+Cabbagec@users.noreply.github.com> Date: Thu, 24 Aug 2023 10:35:01 +0800 Subject: [PATCH] fix incorrect nullability for datetime type when writing to arrow --- connectorx/src/destinations/arrow/arrow_assoc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connectorx/src/destinations/arrow/arrow_assoc.rs b/connectorx/src/destinations/arrow/arrow_assoc.rs index 2f15b829bb..499a2c0a4c 100644 --- a/connectorx/src/destinations/arrow/arrow_assoc.rs +++ b/connectorx/src/destinations/arrow/arrow_assoc.rs @@ -155,7 +155,7 @@ impl ArrowAssoc for DateTime { Field::new( header, ArrowDataType::Timestamp(TimeUnit::Nanosecond, None), - true, + false, ) } } @@ -176,7 +176,7 @@ impl ArrowAssoc for Option> { Field::new( header, ArrowDataType::Timestamp(TimeUnit::Nanosecond, None), - false, + true, ) } }