From 68a65f199d6bce9f4d4bfbe8f5cab5f87489f14e Mon Sep 17 00:00:00 2001 From: leiysky Date: Fri, 13 May 2022 20:47:30 +0800 Subject: [PATCH] remove useless code --- query/src/sql/planner/semantic/type_check.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/query/src/sql/planner/semantic/type_check.rs b/query/src/sql/planner/semantic/type_check.rs index f0a4f9848067..614729a9ea1c 100644 --- a/query/src/sql/planner/semantic/type_check.rs +++ b/query/src/sql/planner/semantic/type_check.rs @@ -521,10 +521,6 @@ impl<'a> TypeChecker<'a> { self.resolve_function("toDayOfYear", &[arg], Some(TimestampType::new_impl(0))) .await } - DateTimeField::Microseconds => { - self.resolve_function("toMonth", &[arg], Some(TimestampType::new_impl(0))) - .await - } _ => Err(ErrorCode::SemanticError(format!( "Invalid time field: {}", date_field