waitingkuo commented on issue #3080:
URL:
https://github.com/apache/arrow-datafusion/issues/3080#issuecomment-1771105919
the original issue is fixed now
```bash
❯ select '2000-01-01T00:00:00'::timestamp;
+-----------------------------+
| Utf8("2000-01-01T00:00:00") |
+-----------------------------+
| 2000-01-01T00:00:00 |
+-----------------------------+
1 row in set. Query took 0.002 seconds
```
however it's not yet totally aligned with postgrseql
datafusion
```bash
❯ select '2000-01-01T00:00:00+01:00'::timestamp;
+-----------------------------------+
| Utf8("2000-01-01T00:00:00+01:00") |
+-----------------------------------+
| 1999-12-31T23:00:00 |
+-----------------------------------+
1 row in set. Query took 0.002 seconds.
```
postgresql
```bash
willy=# select '2000-01-01T00:00:00+01:00'::timestamp;
timestamp
---------------------
2000-01-01 00:00:00
(1 row)
```
Looks like Postgresql's behavior is to completely ignore the timezone part
while casting string to timestamp
--
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]