You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "psavalle (via GitHub)" <gi...@apache.org> on 2025/08/12 14:11:04 UTC
[I] Support write-distribution-mode=hash on unpartitioned tables [iceberg]
psavalle opened a new issue, #13791:
URL: https://github.com/apache/iceberg/issues/13791
### Feature Request / Improvement
When a table is unpartitioned, [`write-distribution-mode=hash` is ignored, and is always internally set to `none`](https://github.com/apache/iceberg/blob/main/spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/SparkWriteConf.java#L304).
However, it could be useful to always do a hash rebalance before writing even when the table is not partitioned so that Spark's AQE can coalesce partitions based on `spark.sql.adaptive.advisoryPartitionSizeInBytes`. This can help avoid writing small data files.
[The docs](https://iceberg.apache.org/docs/1.9.1/spark-writes/#controlling-file-sizes) mention that `write.target-file-size-bytes` should eventually be taken into account for this instead, but in the meantime, forcing a hash rebalance would be useful.
### Query engine
Spark
### Willingness to contribute
- [ ] I can contribute this improvement/feature independently
- [ ] I would be willing to contribute this improvement/feature with guidance from the Iceberg community
- [ ] I cannot contribute this improvement/feature at this time
--
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: issues-unsubscribe@iceberg.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Support write-distribution-mode=hash on unpartitioned tables [iceberg]
Posted by "RussellSpitzer (via GitHub)" <gi...@apache.org>.
RussellSpitzer commented on issue #13791:
URL: https://github.com/apache/iceberg/issues/13791#issuecomment-3179589181
Currently the way we re-distribute is based on the partition transforms. For the unpartitioned case we could just hash all columns, but that seems like it may be overkill. Do you have any thoughts?
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Support write-distribution-mode=hash on unpartitioned tables [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #13791:
URL: https://github.com/apache/iceberg/issues/13791#issuecomment-3874637159
This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Support write-distribution-mode=hash on unpartitioned tables [iceberg]
Posted by "psavalle (via GitHub)" <gi...@apache.org>.
psavalle commented on issue #13791:
URL: https://github.com/apache/iceberg/issues/13791#issuecomment-3179900718
Good point, hashing all column is the only generic option I can think of -- I assume that's already the behavior of Spark's `DataFrame.repartition(n)`?
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Support write-distribution-mode=hash on unpartitioned tables [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #13791:
URL: https://github.com/apache/iceberg/issues/13791#issuecomment-3955543056
This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Support write-distribution-mode=hash on unpartitioned tables [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #13791: Support write-distribution-mode=hash on unpartitioned tables
URL: https://github.com/apache/iceberg/issues/13791
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org