Do timestamps get implicitly casted to another timezone? #10311
-
|
While I was looking into #10308 , I noticed in this query: that the timestamps in the Maybe I misunderstood something there 🤔 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
I think the timestamps may be interpreted as "None" which then has special rules for casting You can see the actual types using the arrow_typeof function > select '2021-03-27T22:00:00.000Z'::timestamp;
+----------------------------------+
| Utf8("2021-03-27T22:00:00.000Z") |
+----------------------------------+
| 2021-03-27T22:00:00 |
+----------------------------------+
1 row(s) fetched.
Elapsed 0.011 seconds.
> select arrow_typeof('2021-03-27T22:00:00.000Z'::timestamp);
+------------------------------------------------+
| arrow_typeof(Utf8("2021-03-27T22:00:00.000Z")) |
+------------------------------------------------+
| Timestamp(Nanosecond, None) |
+------------------------------------------------+
1 row(s) fetched.
Elapsed 0.002 seconds. |
Beta Was this translation helpful? Give feedback.
-
|
Filed #10344 to try and document the current behavior |
Beta Was this translation helpful? Give feedback.
I think the timestamps may be interpreted as "None" which then has special rules for casting
You can see the actual types using the arrow_typeof function