-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recursive CTEs: Stage 3 - add execution support #8840
Merged
alamb
merged 8 commits into
apache:main
from
matthewgapp:matt/feat/recursive-ctes/execution-support
Jan 27, 2024
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d9cae58
rebase all execution and preceding recursive cte work
matthewgapp efed900
error if recursive ctes are nested
matthewgapp 38f847d
error if recursive cte is referenced multiple times within the recurs…
matthewgapp 6121248
wip
matthewgapp 80069f7
fix rebase
matthewgapp 812d64f
move testing files into main repo
matthewgapp 39ab371
update testing pin to main pin
matthewgapp d100913
tweaks
matthewgapp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
time,name,account_balance | ||
1,John,100 | ||
1,Tim,200 | ||
2,John,300 | ||
2,Tim,400 |
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,4 @@ | ||
name,account_growth | ||
John,3 | ||
Tim,20 | ||
Eliza,150 |
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,101 @@ | ||
Index,product,price,prices_row_num | ||
1,Holden,334.8,1 | ||
2,Mercedes-Benz,623.22,2 | ||
3,Aston Martin,363.48,3 | ||
4,GMC,615.67,4 | ||
5,Lincoln,521.13,5 | ||
6,Mitsubishi,143.05,6 | ||
7,Infiniti,861.82,7 | ||
8,Ford,330.57,8 | ||
9,GMC,136.87,9 | ||
10,Toyota,106.29,10 | ||
11,Pontiac,686.95,11 | ||
12,Ford,197.48,12 | ||
13,Honda,774.42,13 | ||
14,Dodge,854.26,14 | ||
15,Bentley,628.82,15 | ||
16,Chevrolet,756.82,16 | ||
17,Volkswagen,438.51,17 | ||
18,Mazda,156.15,18 | ||
19,Hyundai,322.43,19 | ||
20,Oldsmobile,979.95,20 | ||
21,Geo,359.59,21 | ||
22,Ford,960.75,22 | ||
23,Subaru,106.75,23 | ||
24,Pontiac,13.4,24 | ||
25,Mercedes-Benz,858.46,25 | ||
26,Subaru,55.72,26 | ||
27,BMW,316.69,27 | ||
28,Chevrolet,290.32,28 | ||
29,Mercury,296.8,29 | ||
30,Dodge,410.78,30 | ||
31,Oldsmobile,18.07,31 | ||
32,Subaru,442.22,32 | ||
33,Dodge,93.29,33 | ||
34,Honda,282.9,34 | ||
35,Chevrolet,750.87,35 | ||
36,Lexus,249.82,36 | ||
37,Ford,732.33,37 | ||
38,Toyota,680.78,38 | ||
39,Nissan,657.01,39 | ||
40,Mazda,200.76,40 | ||
41,Nissan,251.44,41 | ||
42,Buick,714.44,42 | ||
43,Ford,436.2,43 | ||
44,Volvo,865.53,44 | ||
45,Saab,471.52,45 | ||
46,Mercedes-Benz,51.13,46 | ||
47,Chrysler,943.52,47 | ||
48,Lamborghini,181.6,48 | ||
49,Hyundai,634.89,49 | ||
50,Ford,757.58,50 | ||
51,Porsche,294.64,51 | ||
52,Ford,261.34,52 | ||
53,Chrysler,822.01,53 | ||
54,Audi,430.68,54 | ||
55,Mitsubishi,69.12,55 | ||
56,Mazda,723.16,56 | ||
57,Mazda,711.46,57 | ||
58,Land Rover,435.15,58 | ||
59,Buick,189.58,59 | ||
60,GMC,651.92,60 | ||
61,Mazda,491.37,61 | ||
62,BMW,346.18,62 | ||
63,Ford,456.25,63 | ||
64,Ford,10.65,64 | ||
65,Mazda,985.39,65 | ||
66,Mercedes-Benz,955.79,66 | ||
67,Honda,550.95,67 | ||
68,Mitsubishi,127.6,68 | ||
69,Mercedes-Benz,840.65,69 | ||
70,Infiniti,647.45,70 | ||
71,Bentley,827.26,71 | ||
72,Lincoln,822.22,72 | ||
73,Plymouth,970.55,73 | ||
74,Ford,595.05,74 | ||
75,Maybach,808.46,75 | ||
76,Chevrolet,341.48,76 | ||
77,Jaguar,759.03,77 | ||
78,Land Rover,625.01,78 | ||
79,Lincoln,289.13,79 | ||
80,Suzuki,285.24,80 | ||
81,GMC,253.4,81 | ||
82,Oldsmobile,174.76,82 | ||
83,Lincoln,434.17,83 | ||
84,Dodge,887.38,84 | ||
85,Mercedes-Benz,308.65,85 | ||
86,GMC,182.71,86 | ||
87,Ford,619.62,87 | ||
88,Lexus,228.63,88 | ||
89,Hyundai,901.06,89 | ||
90,Chevrolet,615.65,90 | ||
91,GMC,460.19,91 | ||
92,Mercedes-Benz,729.28,92 | ||
93,Dodge,414.69,93 | ||
94,Maserati,300.83,94 | ||
95,Suzuki,503.64,95 | ||
96,Audi,275.05,96 | ||
97,Ford,303.25,97 | ||
98,Lotus,101.01,98 | ||
99,Lincoln,721.05,99 | ||
100,Kia,833.31,100 |
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,10 @@ | ||
region_id,salesperson_id,sale_amount | ||
101,1,1000 | ||
102,2,500 | ||
101,2,700 | ||
103,3,800 | ||
102,4,300 | ||
101,4,400 | ||
102,5,600 | ||
103,6,500 | ||
101,7,900 |
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,8 @@ | ||
salesperson_id,manager_id | ||
1, | ||
2,1 | ||
3,1 | ||
4,2 | ||
5,2 | ||
6,3 | ||
7,3 |
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,5 @@ | ||
time,other | ||
1,foo | ||
2,bar | ||
4,baz | ||
5,qux |
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend tracking this separate tickets or tasks on the main recursive CTE ticket, otherwise things like this can be easily forgotten