Dandandan commented on issue #3629:
URL: 
https://github.com/apache/arrow-datafusion/issues/3629#issuecomment-1259933492

   I am not sure if it's a bug in the planner.
   
   After `repartition` a `write` is used - between those the planner is free to 
add changes as the write doesn't require any input partition - in fact, 
repartitioning (to 20) might improve the write performance (although now there 
are some unnecessary repartitions). 
   
   There are a couple of options I think to solve this:
   
   * Using the `target_partitions` config instead of using `repartition` will 
have the effect of generating this amount of files for the benchmark
   * Adding some way to define the number of partitions to write (e.g. )
   * Introducing a config option (e.g. `default_write_partitions`)  that 
defines the number of default partitions to write.


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