HeartSaVioR commented on a change in pull request #1523:
URL: https://github.com/apache/iceberg/pull/1523#discussion_r497138926
##########
File path: site/docs/spark.md
##########
@@ -519,6 +519,59 @@ data.writeTo("prod.db.table")
.createOrReplace()
```
+## Writing against partitioned table
+
+Iceberg requires the data to be sorted according to the partition spec in
prior to write against partitioned table.
Review comment:
Yeah you're right that repartition wouldn't make each partition to have
only one category, and I think that's normal as we probably don't want to have
large number of partitions (tasks) due to the unpredictable cardinality of
category.
I understand there're cases where we don't need to add an explicit sort.
Probably they would become the cases no implicit sort is performed as well if
Spark knows enough information on data alignment & required alignment - it'd be
ideal SPARK-23889 would also cover the case.
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]