Skip to content

Commit

Permalink
Add comment on order preservation
Browse files Browse the repository at this point in the history
  • Loading branch information
szarnyasg committed Jan 9, 2025
1 parent 58c4e47 commit 3fd5dec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions _posts/2025-01-09-union-by-name.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Unfortunately we have Codd to thank for this confusing bit!
If only `UNION ALL` were the default...
Typically, `UNION ALL` (and its new counterpart `UNION ALL BY NAME`!) are the desired behavior as they faithfully reproduce the input relations, just stacked together.
This is higher performance as well, since the deduplication that occurs with `UNION` can be quite time intensive with large datasets.
And finally, `UNION ALL` is [preserves the original row order]({% link docs/sql/dialect/order_preservation.md %}).

### Reading Multiple Files

Expand Down

0 comments on commit 3fd5dec

Please sign in to comment.