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.
Internal duckdb#3273: Shared Window Expressions
PR Feedback: * Handle different IGNORE NULLS settings for the same column * Handle volatile expressions
- Loading branch information
Showing
5 changed files
with
94 additions
and
32 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
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
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,16 @@ | ||
# name: test/sql/window/test_volatile_independence.test | ||
# description: Window Sharing should distiguish identical volatile expressions | ||
# group: [window] | ||
|
||
statement ok | ||
SELECT SETSEED(0.8675309); | ||
|
||
query II | ||
SELECT | ||
list(random()) OVER (ORDER BY id), | ||
max(random()) OVER (ORDER BY id) | ||
FROM range(3) t(id); | ||
---- | ||
[0.23450047366512405] 0.772592377754351 | ||
[0.23450047366512405, 0.4512114749041355] 0.772592377754351 | ||
[0.23450047366512405, 0.4512114749041355, 0.5199990716061366] 0.9123614504583814 |