AndreaBozzo commented on code in PR #20079:
URL: https://github.com/apache/datafusion/pull/20079#discussion_r2749593085


##########
datafusion/functions/src/datetime/date_trunc.rs:
##########
@@ -223,27 +223,21 @@ impl ScalarUDFImpl for DateTruncFunc {
         &self.signature
     }
 
-    // keep return_type implementation for information schema generation
-    fn return_type(&self, arg_types: &[DataType]) -> Result<DataType> {

Review Comment:
   thanks this should avoid internal_error, good catch



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to