Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Added support for hash of month_day_ns arrays #899

Merged
merged 1 commit into from
Mar 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/compute/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,15 @@ 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 },
Int32 => __with_ty__! { i32 },
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 },
Expand Down Expand Up @@ -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)
Expand Down