From e0923e2e68e4f20aaa6b686a3ee1038501edb929 Mon Sep 17 00:00:00 2001 From: Filippo Rossi Date: Sat, 26 Oct 2024 18:15:15 +0200 Subject: [PATCH] NativeType from &DataType --- datafusion/common/src/types/native.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/datafusion/common/src/types/native.rs b/datafusion/common/src/types/native.rs index 34324a1e60ec..bfb546783ea2 100644 --- a/datafusion/common/src/types/native.rs +++ b/datafusion/common/src/types/native.rs @@ -391,3 +391,9 @@ impl From for NativeType { } } } + +impl From<&DataType> for NativeType { + fn from(value: &DataType) -> Self { + value.clone().into() + } +}