samredai commented on a change in pull request #4463:
URL: https://github.com/apache/iceberg/pull/4463#discussion_r840582804
##########
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:
```suggestion
In SQL, `ORDER BY` triggers a global sort and `SORT BY` triggers a local
sort.
```
Then I would just show the two examples below without an introductory line
"Global sort like below:". It should be intuitive that the examples are related
to the sentence above.
--
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]