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