Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
leiysky committed May 13, 2022
1 parent e723b4e commit 68a65f1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions query/src/sql/planner/semantic/type_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68a65f1

Please sign in to comment.