-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature](window_function) support to secondary argument to ignore nu…
…ll values in first_value/last_value (#27623)
- Loading branch information
Showing
18 changed files
with
891 additions
and
26 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
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
97 changes: 97 additions & 0 deletions
97
regression-test/data/correctness_p0/test_always_nullable_window_function_legacy_planner.out
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,97 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !select_default -- | ||
21 04-21-11 1 1 1 2 1.0 1 1 \N \N | ||
21 04-21-11 1 1 1 2 1.0 1 1 \N \N | ||
22 04-22-10-21 0 0 1 1 0.5 1 0 \N \N | ||
22 04-22-10-21 0 1 1 2 0.6666666666666666 1 0 \N \N | ||
22 04-22-10-21 1 0 0 1 0.3333333333333333 1 0 \N \N | ||
22 04-22-10-21 1 0 1 1 0.5 1 0 \N \N | ||
23 04-23-10 1 1 1 2 1.0 1 1 \N \N | ||
23 04-23-10 1 1 1 2 1.0 1 1 \N \N | ||
24 02-24-10-21 1 1 1 2 1.0 1 1 \N \N | ||
24 02-24-10-21 1 1 1 2 1.0 1 1 \N \N | ||
|
||
-- !select_empty_window -- | ||
21 04-21-11 1 \N \N \N \N \N \N \N \N | ||
21 04-21-11 1 1 1 1 1.0 1 1 \N \N | ||
22 04-22-10-21 0 \N \N \N \N \N \N \N 0 | ||
22 04-22-10-21 0 1 1 1 1.0 1 1 0 \N | ||
22 04-22-10-21 1 0 0 0 0.0 0 0 \N 1 | ||
22 04-22-10-21 1 0 0 0 0.0 0 0 1 \N | ||
23 04-23-10 1 \N \N \N \N \N \N \N \N | ||
23 04-23-10 1 1 1 1 1.0 1 1 \N \N | ||
24 02-24-10-21 1 \N \N \N \N \N \N \N \N | ||
24 02-24-10-21 1 1 1 1 1.0 1 1 \N \N | ||
|
||
-- !select_default_nullable -- | ||
21 04-21-11 1 1 1 2 1.0 1 1 \N \N | ||
21 04-21-11 1 1 1 2 1.0 1 1 \N \N | ||
22 04-22-10-21 0 0 1 1 0.5 1 0 \N \N | ||
22 04-22-10-21 0 1 1 2 0.6666666666666666 1 0 \N \N | ||
22 04-22-10-21 1 0 0 1 0.3333333333333333 1 0 \N \N | ||
22 04-22-10-21 1 0 1 1 0.5 1 0 \N \N | ||
23 04-23-10 1 1 1 2 1.0 1 1 \N \N | ||
23 04-23-10 1 1 1 2 1.0 1 1 \N \N | ||
24 02-24-10-21 1 1 1 2 1.0 1 1 \N \N | ||
24 02-24-10-21 1 1 1 2 1.0 1 1 \N \N | ||
|
||
-- !select_empty_window_nullable -- | ||
21 04-21-11 1 \N \N \N \N \N \N \N \N | ||
21 04-21-11 1 1 1 1 1.0 1 1 \N \N | ||
22 04-22-10-21 0 \N \N \N \N \N \N \N 0 | ||
22 04-22-10-21 0 1 1 1 1.0 1 1 0 \N | ||
22 04-22-10-21 1 0 0 0 0.0 0 0 \N 1 | ||
22 04-22-10-21 1 0 0 0 0.0 0 0 1 \N | ||
23 04-23-10 1 \N \N \N \N \N \N \N \N | ||
23 04-23-10 1 1 1 1 1.0 1 1 \N \N | ||
24 02-24-10-21 1 \N \N \N \N \N \N \N \N | ||
24 02-24-10-21 1 1 1 1 1.0 1 1 \N \N | ||
|
||
-- !select_default_old_planner -- | ||
21 04-21-11 1 1 1 2 1.0 1 1 \N 1 | ||
21 04-21-11 1 1 1 2 1.0 1 1 1 \N | ||
22 04-22-10-21 0 0 1 1 0.5 1 0 \N 1 | ||
22 04-22-10-21 0 1 1 2 0.6666666666666666 1 0 1 1 | ||
22 04-22-10-21 1 0 0 1 0.3333333333333333 1 0 0 0 | ||
22 04-22-10-21 1 0 1 1 0.5 1 0 0 \N | ||
23 04-23-10 1 1 1 2 1.0 1 1 \N 1 | ||
23 04-23-10 1 1 1 2 1.0 1 1 1 \N | ||
24 02-24-10-21 1 1 1 2 1.0 1 1 \N 1 | ||
24 02-24-10-21 1 1 1 2 1.0 1 1 1 \N | ||
|
||
-- !select_empty_window_old_planner -- | ||
21 04-21-11 1 \N \N \N \N \N \N \N \N | ||
21 04-21-11 1 1 1 1 1.0 1 1 \N \N | ||
22 04-22-10-21 0 \N \N \N \N \N \N \N 0 | ||
22 04-22-10-21 0 1 1 1 1.0 1 1 0 \N | ||
22 04-22-10-21 1 0 0 0 0.0 0 0 \N 1 | ||
22 04-22-10-21 1 0 0 0 0.0 0 0 1 \N | ||
23 04-23-10 1 \N \N \N \N \N \N \N \N | ||
23 04-23-10 1 1 1 1 1.0 1 1 \N \N | ||
24 02-24-10-21 1 \N \N \N \N \N \N \N \N | ||
24 02-24-10-21 1 1 1 1 1.0 1 1 \N \N | ||
|
||
-- !select_default_nullable_old_planner -- | ||
21 04-21-11 1 1 1 2 1.0 1 1 \N 1 | ||
21 04-21-11 1 1 1 2 1.0 1 1 1 \N | ||
22 04-22-10-21 0 0 1 1 0.5 1 0 \N 1 | ||
22 04-22-10-21 0 1 1 2 0.6666666666666666 1 0 1 1 | ||
22 04-22-10-21 1 0 0 1 0.3333333333333333 1 0 0 0 | ||
22 04-22-10-21 1 0 1 1 0.5 1 0 0 \N | ||
23 04-23-10 1 1 1 2 1.0 1 1 \N 1 | ||
23 04-23-10 1 1 1 2 1.0 1 1 1 \N | ||
24 02-24-10-21 1 1 1 2 1.0 1 1 \N 1 | ||
24 02-24-10-21 1 1 1 2 1.0 1 1 1 \N | ||
|
||
-- !select_empty_window_nullable_old_planner -- | ||
21 04-21-11 1 \N \N \N \N \N \N \N \N | ||
21 04-21-11 1 1 1 1 1.0 1 1 \N \N | ||
22 04-22-10-21 0 \N \N \N \N \N \N \N 0 | ||
22 04-22-10-21 0 1 1 1 1.0 1 1 0 \N | ||
22 04-22-10-21 1 0 0 0 0.0 0 0 \N 1 | ||
22 04-22-10-21 1 0 0 0 0.0 0 0 1 \N | ||
23 04-23-10 1 \N \N \N \N \N \N \N \N | ||
23 04-23-10 1 1 1 1 1.0 1 1 \N \N | ||
24 02-24-10-21 1 \N \N \N \N \N \N \N \N | ||
24 02-24-10-21 1 1 1 1 1.0 1 1 \N \N | ||
|
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
Oops, something went wrong.