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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to