Dandandan commented on pull request #9806:
URL: https://github.com/apache/arrow/pull/9806#issuecomment-807984850


   > @Dandandan do you know of a good example test where the underlying 
`Partitioning` is of type `Hash`? I am having trouble finding one in the 
codebase, which is preventing me from creating a test for the `Hash` case. 
Thanks!
   
   You are right, it is pretty new and unused. There is a lower level test for 
the `Hash` partitioning but not much else is using it yet.
   
   In the DataFrame api you can pass `.repartition(Partitioning::Hash(expr))`
   See here the relevant code/example for RoundRobinBatch:
   
https://github.com/apache/arrow/blob/a2a9f5d0b70d304817e65e32fbe1deef98ca7cb8/rust/datafusion/src/dataframe.rs#L190-L207


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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to