Skip to content

Commit

Permalink
Docs: Document UNORDERED for spark write (apache#8958)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajantha-bhat authored Oct 31, 2023
1 parent da55503 commit 0e09ac1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/spark-ddl.md
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,12 @@ To order within each task, not across tasks, use `LOCALLY ORDERED BY`:
ALTER TABLE prod.db.sample WRITE LOCALLY ORDERED BY category, id
```

To unset the sort order of the table, use `UNORDERED`:

```sql
ALTER TABLE prod.db.sample WRITE UNORDERED
```

### `ALTER TABLE ... WRITE DISTRIBUTED BY PARTITION`

`WRITE DISTRIBUTED BY PARTITION` will request that each partition is handled by one writer, the default implementation is hash distribution.
Expand Down

0 comments on commit 0e09ac1

Please sign in to comment.