Skip to content

Commit

Permalink
revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Dec 11, 2024
1 parent b64cf14 commit 97b037b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions datafusion/functions/src/datetime/date_part.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,7 @@ impl ScalarUDFImpl for DatePartFunc {
}

fn return_type(&self, _arg_types: &[DataType]) -> Result<DataType> {
// return type could be Float32 or Int32 depending on the input arguments
// return_type_from_exprs should be called instead
Ok(DataType::Float64)
internal_err!("return_type_from_exprs shoud be called instead")
}

fn return_type_from_exprs(
Expand Down

0 comments on commit 97b037b

Please sign in to comment.