From e81e1258f7b82535794b9f5ae5c6c12a06f271e6 Mon Sep 17 00:00:00 2001 From: "Jorge C. Leitao" Date: Wed, 9 Mar 2022 07:27:13 +0000 Subject: [PATCH] Added hash to month_day_ns --- src/compute/hash.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compute/hash.rs b/src/compute/hash.rs index f21d0c82cac..2bb7e241575 100644 --- a/src/compute/hash.rs +++ b/src/compute/hash.rs @@ -67,7 +67,7 @@ macro_rules! with_match_primitive_type {( ) => ({ macro_rules! __with_ty__ {( $_ $T:ident ) => ( $($body)* )} use crate::datatypes::PrimitiveType::*; - use crate::types::days_ms; + use crate::types::{days_ms, months_days_ns}; match $key_type { Int8 => __with_ty__! { i8 }, Int16 => __with_ty__! { i16 }, @@ -75,6 +75,7 @@ macro_rules! with_match_primitive_type {( Int64 => __with_ty__! { i64 }, Int128 => __with_ty__! { i128 }, DaysMs => __with_ty__! { days_ms }, + MonthDayNano => __with_ty__! { months_days_ns }, UInt8 => __with_ty__! { u8 }, UInt16 => __with_ty__! { u16 }, UInt32 => __with_ty__! { u32 }, @@ -137,6 +138,7 @@ pub fn can_hash(data_type: &DataType) -> bool { | PhysicalType::Primitive(PrimitiveType::Int64) | PhysicalType::Primitive(PrimitiveType::Int128) | PhysicalType::Primitive(PrimitiveType::DaysMs) + | PhysicalType::Primitive(PrimitiveType::MonthDayNano) | PhysicalType::Primitive(PrimitiveType::UInt8) | PhysicalType::Primitive(PrimitiveType::UInt16) | PhysicalType::Primitive(PrimitiveType::UInt32)