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/03/11 14:41:21 UTC

[GitHub] [arrow-rs] jhorstmann opened a new issue #1429: DictionaryArray::try_new ignores validity bitmap of the keys

jhorstmann opened a new issue #1429:
URL: https://github.com/apache/arrow-rs/issues/1429


   **Describe the bug**
   
   The `try_new` method seems to ignore the validity bitmap of the key array:
   
   
   **To Reproduce**
   
   ```rust
   let values: StringArray = [Some("foo"), Some("bar"), Some("baz")]
       .into_iter()
       .collect();
   let keys: Int32Array = [Some(0), Some(2), None, Some(1)].into_iter().collect();
   
   let array = DictionaryArray::<Int32Type>::try_new(&keys, &values).unwrap();
   
   assert!(array.keys.is_valid(0));
   assert!(array.keys.is_valid(1));
   assert!(array.keys.is_null(2));
   assert!(array.keys.is_valid(3));
   ```
   


-- 
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] alamb commented on issue #1429: DictionaryArray::try_new ignores validity bitmap of the keys

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


   Thank you for fixing this @jhorstmann 


-- 
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] alamb commented on issue #1429: DictionaryArray::try_new ignores validity bitmap of the keys

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


   Thank you for fixing this @jhorstmann 


-- 
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] sunchao closed issue #1429: DictionaryArray::try_new ignores validity bitmap of the keys

Posted by GitBox <gi...@apache.org>.
sunchao closed issue #1429:
URL: https://github.com/apache/arrow-rs/issues/1429


   


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