NoahKusaba opened a new issue, #162:
URL: https://github.com/apache/datafusion-iceberg/issues/162

   #160 adds `write.distribution-mode=hash` and rejects `range` as not 
implemented. In Spark, `range` range-partitions rows across writers by 
partition keys and then the table's sort order, so each writer's files cover 
non-overlapping key ranges.
   
   Supporting it needs:
   
   1. **Writes that follow the table's sort order.** `IcebergWriteExec` sorts 
only by partition keys; the Iceberg sort order is ignored. Adding it to the 
required ordering after the partition keys is useful on its own, and without it 
`range` behaves like `hash`.
   2. **A range requirement in DataFusion.** DataFusion 56 has 
`Partitioning::Range` (apache/datafusion#22395), but `Distribution` has no 
range variant, so the writer can't request one. Split points also have to be 
known when the plan is built; Spark samples the input at run time instead.
   
   Until then, `range` should stay an error rather than fall back to `hash`.
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to