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/20 09:33:44 UTC

[GitHub] [arrow-rs] tustvold opened a new issue, #1595: Filtering UnionArray Changes DataType

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

   **Describe the bug**
   
   When filtering a UnionArray the output will only include the types that had at least one value selected by the filter. I think this is a bug, as I would not expect a filter to mutate the schema of the input
   
   **Expected behavior**
   
   This test should pass
   
   ```
   let mut builder = UnionBuilder::new_dense(4);
   builder.append::<Int32Type>("A", 1).unwrap();
   builder.append::<Float64Type>("B", 3.2).unwrap();
   let array = builder.build().unwrap();
   let filter_array = BooleanArray::from(vec![true, false]);
   let c = filter(&array, &filter_array).unwrap();
   
   assert_eq!(array.data_type(), c.data_type())
   ```


-- 
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] tustvold closed issue #1595: Filtering UnionArray Changes DataType

Posted by GitBox <gi...@apache.org>.
tustvold closed issue #1595: Filtering UnionArray Changes DataType
URL: https://github.com/apache/arrow-rs/issues/1595


-- 
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] tfeda commented on issue #1595: Filtering UnionArray Changes DataType

Posted by GitBox <gi...@apache.org>.
tfeda commented on issue #1595:
URL: https://github.com/apache/arrow-rs/issues/1595#issuecomment-1119169356

   The code runs fine for me. Perhaps it got fixed in #1589 or #1632?


-- 
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 #1595: Filtering UnionArray Changes DataType

Posted by GitBox <gi...@apache.org>.
tustvold commented on issue #1595:
URL: https://github.com/apache/arrow-rs/issues/1595#issuecomment-1119352902

   I can't reproduce this even on commits before those changes, so possibly a PEBCAC on my part here :sweat_smile: 


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