You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/04/01 13:49:38 UTC
[GitHub] [iceberg] polaris6 commented on a change in pull request #4463: Docs: update Spark Write doc for partitioned tables
polaris6 commented on a change in pull request #4463:
URL: https://github.com/apache/iceberg/pull/4463#discussion_r840604240
##########
File path: docs/spark/spark-writes.md
##########
@@ -328,14 +330,30 @@ PARTITIONED BY (days(ts), category)
To write data to the sample table, your data needs to be sorted by `days(ts), category`.
-If you're inserting data with SQL statement, you can use `ORDER BY` to achieve it, like below:
+If you're inserting data with SQL statement, you can use either `ORDER BY` to trigger global sort, or `SORT BY` to trigger local sort. Global sort like below:
Review comment:
The original statement is maintained here, mainly to be consistent with the description of the DataFrame.
<img width="927" alt="image" src="https://user-images.githubusercontent.com/29967142/161276564-9defd0a6-597c-4df2-ad19-78e0e2226fdc.png">
--
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