You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "comphead (via GitHub)" <gi...@apache.org> on 2023/03/03 18:25:12 UTC

[GitHub] [arrow-rs] comphead opened a new issue, #3800: Cast to timestamp with time zone returns timestamp

comphead opened a new issue, #3800:
URL: https://github.com/apache/arrow-rs/issues/3800

   **Describe the bug**
   <!--
   A clear and concise description of what the bug is.
   -->
   Cast to timestamp with time zone returns timestamp
   
   **To Reproduce**
   <!--
   Steps to reproduce the behavior:
   -->
   
   ```
   
       #[test]
       fn test_cast_utf8_to_timestamptz() {
               let valid = StringArray::from(vec![
                   "2023-01-01",
               ]);
   
               let array = Arc::new(valid) as ArrayRef;
               let b = cast(&array, &DataType::Timestamp(TimeUnit::Nanosecond, Some("+00:00".to_owned())))
                   .unwrap();
   
               dbg!(&b);
   
       }
   
   [arrow-cast/src/cast.rs:7653] &b = PrimitiveArray<Timestamp(Nanosecond, None)>
   [
     2023-01-01T00:00:00,
   ]
   ```
   
   **Expected behavior**
   <!--
   A clear and concise description of what you expected to happen.
   -->
   The return type has to be 
   ```
   PrimitiveArray<Timestamp(Nanosecond, Some("+00:00"))>
   ```
   
   **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-rs] comphead commented on issue #3800: Cast to timestamp with time zone returns timestamp

Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on issue #3800:
URL: https://github.com/apache/arrow-rs/issues/3800#issuecomment-1453925016

   Probably related to #1936 


-- 
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-rs] tustvold closed issue #3800: Cast to timestamp with time zone returns timestamp

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold closed issue #3800: Cast to timestamp with time zone returns timestamp
URL: https://github.com/apache/arrow-rs/issues/3800


-- 
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-rs] tustvold commented on issue #3800: Cast to timestamp with time zone returns timestamp

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on issue #3800:
URL: https://github.com/apache/arrow-rs/issues/3800#issuecomment-1463940404

   `label_issue.py` automatically added labels {'arrow'} from #3806


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