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/04/19 23:30:21 UTC

[GitHub] [arrow-rs] tustvold opened a new issue, #1591: [Safety] UnionBuilder Doesn't Check Types

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

   **Describe the bug**
   
   The following code passes, despite transmuting memory in undefined ways
   
   ```
   let mut builder = UnionBuilder::new_sparse(2);
   builder.append::<Float32Type>("a", 1.0).unwrap();
   builder.append::<Int32Type>("a", 1).unwrap();
   
   let array = builder.build().unwrap();
   ```
   
   **To Reproduce**
   
   Test above
   
   **Expected behavior**
   
   `UnionBuilder::append` should error if the types don't match
   
   **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] alamb closed issue #1591: [Safety] UnionBuilder Doesn't Check Types

Posted by GitBox <gi...@apache.org>.
alamb closed issue #1591: [Safety] UnionBuilder Doesn't Check Types
URL: https://github.com/apache/arrow-rs/issues/1591


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