alexanderbianchi opened a new pull request, #159:
URL: https://github.com/apache/datafusion-iceberg/pull/159

   ## Why remove the shuffle?
   
   This follows up on #138. `IcebergTableProvider::insert_into` inserted a 
`RepartitionExec` before every write. It hashed the projected `_partition` when 
the spec included an identity or bucket transform and used round-robin 
otherwise. The writer accepts the input's existing distribution, so DataFusion 
already removes that exchange from the optimized insert plans covered by the 
SQL tests.
   
   ## What changes?
   
   Pass the input through `project_with_partition` and straight to 
`IcebergWriteExec`. The projection already handles unpartitioned tables. Each 
input partition gets its own writer, clustered writes still require local 
ordering by `_partition`, and the commit sink gathers every task's files into 
one append.
   
   Callers executing the raw `insert_into` plan now inherit the input's 
partition count and distribution. This can change the number and sizes of files 
they produce. The separate cross-batch clustered-writer issue is tracked in #39.
   
   ## Verification
   
   Removed the private shuffle module and its 13 strategy-selection tests. The 
existing SQL insert tests exercise single- and multi-partition input, fanout on 
and off, and reading the committed rows back. All existing plan snapshots pass 
as written.
   
   - `cargo fmt --all -- --check`
   - `cargo clippy --workspace --locked --all-targets -- -D warnings`
   - `cargo test --workspace --locked`
   


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