findepi opened a new issue, #16678: URL: https://github.com/apache/datafusion/issues/16678
### Describe the bug We have this in SLT tests ``` query PPP SELECT to_timestamp(1.1) as c1, ... ---- 1970-01-01T00:00:01.100 ... ``` and indeed it works in CLI ``` > SELECT to_timestamp(1.1); +----------------------------+ | to_timestamp(Float64(1.1)) | +----------------------------+ | 1970-01-01T00:00:01.100 | +----------------------------+ ``` unless the value is not result of constant folding ``` > SELECT to_timestamp(x) FROM (VALUES (1.1), (NULL)) t(x); +-------------------------------+ | to_timestamp(t.x) | +-------------------------------+ | 1970-01-01T00:00:00.000000001 | | NULL | +-------------------------------+ ``` ### To Reproduce _No response_ ### Expected behavior Same result ### Additional context - https://github.com/apache/datafusion/issues/16636 - https://github.com/apache/datafusion/issues/16531 - https://github.com/apache/datafusion/issues/13351 -- 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