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/01/18 17:15:51 UTC

[GitHub] [arrow-rs] alamb opened a new issue #1202: Add doc examples for `eq_dyn` etc.

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


   The comparison kernels have a somewhat bewildering array of options for a new developer
   
   https://docs.rs/arrow/7.0.0/arrow/compute/kernels/comparison/index.html
   
   We have been making the API easier to use with so called `dyn` kernels (such as `eq_dyn`, etc) but this may not be as discoverable as would be ideal. 
   
   Thus it would be great to add some doctests to the `comparison` module that demonstrated how to use those kernels with an example of creating two arrays, and then calling `eq_dyn` on them
   
   


-- 
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 closed issue #1202: Add doc examples for `eq_dyn` etc.

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


   


-- 
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] HaoYang670 commented on issue #1202: Add doc examples for `eq_dyn` etc.

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


   I can work on it! Please assign to me @alamb 


-- 
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 #1202: Add doc examples for `eq_dyn` etc.

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


   Perhaps one could follow the example of
   
   https://docs.rs/arrow/7.0.0/arrow/array/type.StringArray.html
   
   ```rust
   use arrow::array::StringArray;
   let array1 = StringArray::from(vec![Some("foo"), None, Some("bar")]);
   let array2 = StringArray::from(vec![Some("foo"), None, Some("baz")]);
   let result = eq_dyn(&array1, &array2).unwrap();
   assert_eq!(BooleanArray::from(vec![Some(true), None, Some(false)]), result))
   ```
   


-- 
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 #1202: Add doc examples for `eq_dyn` etc.

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


   Thanks @HaoYang670  


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