From c5790235ae5b5a22967917f158da9d6c8c7f1de0 Mon Sep 17 00:00:00 2001 From: QuenKar <47681251+QuenKar@users.noreply.github.com> Date: Fri, 15 Sep 2023 19:49:54 +0800 Subject: [PATCH] chore: cr. --- src/datatypes/src/types/duration_type.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/datatypes/src/types/duration_type.rs b/src/datatypes/src/types/duration_type.rs index daa7bd768d28..8e4516ef41e0 100644 --- a/src/datatypes/src/types/duration_type.rs +++ b/src/datatypes/src/types/duration_type.rs @@ -134,9 +134,6 @@ macro_rules! impl_data_type_for_duration { fn cast_value_ref(value: ValueRef) -> crate::Result> { match value { ValueRef::Null => Ok(None), - ValueRef::Int64(v) =>{ - Ok(Some([]::from(v))) - } ValueRef::Duration(t) => match t.unit() { TimeUnit::$unit => Ok(Some([](t))), other => error::CastTypeSnafu {