waitingkuo opened a new issue, #3149:
URL: https://github.com/apache/arrow-datafusion/issues/3149

   **Describe the bug**
   A clear and concise description of what the bug is.
   
   **To Reproduce**
   Steps to reproduce the behavior:
   
   `now()` originally output `Timestamp(Nanosecond, Some("UTC"))`
   ```bash
   ❯ select arrow_typeof(now());
   +------------------------------------+
   | arrowtypeof(now())                 |
   +------------------------------------+
   | Timestamp(Nanosecond, Some("UTC")) |
   +------------------------------------+
   1 row in set. Query took 0.002 seconds.
   ```
   
   it becomes `Timestamp(NanoSecond, None)` after casting to `timestamp with 
time zone`
   ```bash
   ❯ select arrow_typeof(now()::timestamp with time zone);
   +---------------------------------------------------------+
   | arrowtypeof(CAST(now() AS Timestamp(Nanosecond, None))) |
   +---------------------------------------------------------+
   | Timestamp(Nanosecond, None)                             |
   +---------------------------------------------------------+
   1 row in set. Query took 0.002 seconds.
   ```
   
   **Expected behavior**
   A clear and concise description of what you expected to happen.
   
   should keep the timezone
   
   **Additional context**
   Add any other context about the problem here.
   


-- 
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]

Reply via email to