waitingkuo commented on issue #7958: URL: https://github.com/apache/arrow-datafusion/issues/7958#issuecomment-1784890619
`Timestamp` in SQL maps to `Timestamp(Nanosecond, tz)` for now. https://github.com/apache/arrow-datafusion/blob/9b45967edc6dba312ea223464dad3e66604d2095/datafusion/sql/src/planner.rs#L346 So far, `1::timestamp` in datafusion treat `int 1` as `1 ns` which is same as pyarrow ```python In [8]: pa.array([1]).cast(pa.timestamp('ns')) Out[8]: <pyarrow.lib.TimestampArray object at 0x11969d2e0> [ 1970-01-01 00:00:00.000000001 ] ``` @alamb @avantgardnerio @liukun4515 any thoughts about this? -- 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]
