forked from duckdb/duckdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request duckdb#9477 from hawkfish/window-collate
Issue duckdb#8937: Window Order Collation
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# name: test/sql/window/test_window_order_collate.test | ||
# description: Test collation is honoured by over(order by) | ||
# group: [window] | ||
|
||
statement ok | ||
PRAGMA enable_verification | ||
|
||
query III | ||
select | ||
*, | ||
array_agg(col) over(partition by id order by col collate nocase) as lead_col_nocase | ||
from ( | ||
select | ||
unnest(array[1, 1, 1, 1]) as id, | ||
unnest(array['A', 'a', 'b', 'B']) as col | ||
) | ||
---- | ||
1 A [A, a] | ||
1 a [A, a] | ||
1 b [A, a, b, B] | ||
1 B [A, a, b, B] |