diff --git a/docs/src/main/sphinx/connector/iceberg.md b/docs/src/main/sphinx/connector/iceberg.md index 6ec6cd7bd4e0..42cb12927220 100644 --- a/docs/src/main/sphinx/connector/iceberg.md +++ b/docs/src/main/sphinx/connector/iceberg.md @@ -1502,6 +1502,18 @@ CREATE TABLE example.customers.orders ( WITH (sorted_by = ARRAY['order_date']) ``` +You can explicitly configure sort directions or null ordering in the following way: + +``` +CREATE TABLE example.customers.orders ( + order_id BIGINT, + order_date DATE, + account_number BIGINT, + customer VARCHAR, + country VARCHAR) +WITH (sorted_by = ARRAY['order_date DESC NULLS FIRST', 'order_id ASC NULLS LAST']) +``` + Sorting can be combined with partitioning on the same column. For example: ```