waitingkuo commented on issue #3922: URL: https://github.com/apache/arrow-datafusion/issues/3922#issuecomment-1287399593
@alamb i think int32 isn't large enough for microsecond scale. `cast`ing timestamp[us] to integer returns number of microseconds from 1970, but 2^32-1 microseonds is just too small. ```bash ❯ select to_timestamp_micros(4294967295); +--------------------------------------+ | totimestampmicros(Int64(4294967295)) | +--------------------------------------+ | 1970-01-01 01:11:34.967295 | +--------------------------------------+ 1 row in set. Query took 0.000 seconds. ``` -- 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]
