Omega359 opened a new issue, #14488:
URL: https://github.com/apache/datafusion/issues/14488

   ### Describe the bug
   
   Somewhat related to #12892 but different. The following query fails in DF 45:
   
   ```sql
   select to_unixtime(arrow_cast(to_timestamp('2023-01-14T01:01:30'), 
'Timestamp(Second, Some("+05:30"))'));
   ```
   The issue is in invoke_batch where it will match only 
`DataType::Timestamp(_, None)`, not `DataType::Timestamp(_, tz)`
   
   
   ### To Reproduce
   
   Run sql.
   
   ### Expected behavior
   
   to_unixtime should work regardless of whether a tz was provided or not
   
   ### Additional context
   
   _No response_


-- 
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: github-unsubscr...@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to