You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/08/15 16:15:17 UTC

[GitHub] [arrow-datafusion] waitingkuo opened a new issue, #3149: cast to timestamp with time zone drops timezone

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: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] Jefffrey commented on issue #3149: cast to timestamp with time zone drops timezone

Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
Jefffrey commented on issue #3149:
URL: https://github.com/apache/arrow-datafusion/issues/3149#issuecomment-1454377173

   Seems resolved as of latest main:
   
   ```bash
   jeffrey:~/Code/arrow-datafusion/datafusion-cli$ git rev-parse HEAD
   e9852074bacd8c891d84eba38b3417aa16a2d18c
   jeffrey:~/Code/arrow-datafusion/datafusion-cli$ cargo run
       Finished dev [unoptimized + debuginfo] target(s) in 0.12s
        Running `/media/jeffrey/1tb_860evo_ssd/.cargo_target_cache/debug/datafusion-cli`
   DataFusion CLI v19.0.0
   ❯ select arrow_typeof(now());
   +---------------------------------------+
   | arrowtypeof(now())                    |
   +---------------------------------------+
   | Timestamp(Nanosecond, Some("+00:00")) |
   +---------------------------------------+
   1 row in set. Query took 0.003 seconds.
   ❯ select arrow_typeof(now()::timestamp with time zone);
   +---------------------------------------+
   | arrowtypeof(now())                    |
   +---------------------------------------+
   | Timestamp(Nanosecond, Some("+00:00")) |
   +---------------------------------------+
   1 row in set. Query took 0.002 seconds.
   ❯
   ```
   
   I think might have been resolved by https://github.com/apache/arrow-datafusion/pull/3698
   
   cc @waitingkuo  @alamb 


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] alamb closed issue #3149: cast to timestamp with time zone drops timezone

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #3149: cast to timestamp with time zone drops timezone
URL: https://github.com/apache/arrow-datafusion/issues/3149


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] alamb commented on issue #3149: cast to timestamp with time zone drops timezone

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #3149:
URL: https://github.com/apache/arrow-datafusion/issues/3149#issuecomment-1454720163

   I agree -- thanks for checking @Jefffrey 


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org