coderfender opened a new issue, #20554:
URL: https://github.com/apache/datafusion/issues/20554
### Is your feature request related to a problem or challenge?
DF's int to timestamp cast just reinterprets the nit to timestamp.
DataFusion: int value = timestamp value in target unit (microseconds)
Spark: int value = seconds since epoch, then converted to target unit
Example : casting 100 to TimestampMicrosecond:
- DataFusion -> 100 microseconds (0.0001 seconds)
- Spark -> 100 seconds = 100,000,000 microseconds
### Describe the solution you'd like
Implement new spark compatible cast ScalarUDF and port the existing code
from comet back to spark-expr crate
### Describe alternatives you've considered
_No response_
### 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: [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]