-
Notifications
You must be signed in to change notification settings - Fork 4
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 #91 from Matts966/feature/tvf
Support TVF
- Loading branch information
Showing
61 changed files
with
185 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Analyzing "samples/ml/create_input.sql" | ||
catalog: | ||
tables: | ||
dataset.main | ||
tablename1 | ||
tablename2 | ||
tvfs: |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Analyzing "samples/ml/create_input.sql" | ||
catalog: | ||
tables: | ||
dataset.main | ||
tablename1 | ||
tablename2 | ||
tvfs: |
3 changes: 2 additions & 1 deletion
3
samples/ml/side_effect_first_with_tables/alphacheck_stdout.txt
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Analyzing "samples/ml/create_input.sql" | ||
catalog: | ||
tables: | ||
dataset.main | ||
tablename1 | ||
tablename2 | ||
tvfs: |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Analyzing "samples/ml/create_input.sql" | ||
catalog: | ||
tables: | ||
dataset.main | ||
tablename1 | ||
tablename2 | ||
tvfs: |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Analyzing "samples/ml/create_input.sql" | ||
catalog: | ||
tables: | ||
dataset.main | ||
tablename1 | ||
tablename2 | ||
tvfs: |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Analyzing "samples/ml/create_input.sql" | ||
catalog: | ||
tables: | ||
dataset.main | ||
tablename1 | ||
tablename2 | ||
tvfs: |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Analyzing "samples/sample-ci/sample/create_datawarehouse3.sql" | ||
catalog: | ||
tables: | ||
dataset.main | ||
tablename1 | ||
tablename2 | ||
tvfs: |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Analyzing "samples/sample-ci/sample/create_datawarehouse3.sql" | ||
catalog: | ||
tables: | ||
dataset.main | ||
tablename1 | ||
tablename2 | ||
tvfs: |
3 changes: 2 additions & 1 deletion
3
samples/sample-ci/side_effect_first_with_tables/alphacheck_stdout.txt
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Analyzing "samples/sample-ci/sample/create_datawarehouse3.sql" | ||
catalog: | ||
tables: | ||
dataset.main | ||
tablename1 | ||
tablename2 | ||
tvfs: |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Analyzing "samples/sample-ci/sample/create_datawarehouse3.sql" | ||
catalog: | ||
tables: | ||
dataset.main | ||
tablename1 | ||
tablename2 | ||
tvfs: |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Analyzing "samples/sample-ci/sample/create_datawarehouse3.sql" | ||
catalog: | ||
tables: | ||
dataset.main | ||
tablename1 | ||
tablename2 | ||
tvfs: |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Analyzing "samples/sample-ci/sample/create_datawarehouse3.sql" | ||
catalog: | ||
tables: | ||
dataset.main | ||
tablename1 | ||
tablename2 | ||
tvfs: |
Empty file.
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,7 @@ | ||
Analyzing "samples/tvf/define_tvf.sql" | ||
Create Table Function Statement analyzed, adding function to catalog... | ||
SUCCESS: analysis finished! | ||
Analyzing "samples/tvf/call_tvf.sql" | ||
DDL analyzed, adding table to catalog... | ||
SUCCESS: analysis finished! | ||
Successfully finished type check! |
Empty file.
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 @@ | ||
Reading paths passed as a command line arguments... | ||
Only files that end with .sql or .bq are analyzed. | ||
Reading "samples/tvf/call_tvf.sql" | ||
Reading "samples/tvf/define_tvf.sql" |
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 @@ | ||
CREATE OR REPLACE TABLE `dataset.tvf_table` AS | ||
SELECT | ||
* | ||
FROM | ||
`dataset.tvf`(0); |
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 @@ | ||
digraph G { | ||
0 [label="samples/tvf/call_tvf.sql", shape="", type=query]; | ||
1 [label="samples/tvf/define_tvf.sql", shape="", type=query]; | ||
1->0 ; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,13 @@ | ||
CREATE OR REPLACE TABLE FUNCTION `dataset.tvf`(input int64) | ||
AS | ||
SELECT | ||
* | ||
EXCEPT ( | ||
test_code | ||
) | ||
FROM | ||
UNNEST(ARRAY[STRUCT("1" AS id, "apple" AS product_name, 120 AS price, date("2022-01-11") AS purchase_date, | ||
1 AS test_code), ("2", "banana", 100, date("2022-01-11"), 1), ("3", "orange", 80, date("2022-01-12"), | ||
1)]) | ||
WHERE | ||
test_code = input; |
Empty file.
Empty file.
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,7 @@ | ||
Analyzing "samples/tvf/define_tvf.sql" | ||
Create Table Function Statement analyzed, adding function to catalog... | ||
SUCCESS: analysis finished! | ||
Analyzing "samples/tvf/call_tvf.sql" | ||
DDL analyzed, adding table to catalog... | ||
SUCCESS: analysis finished! | ||
Successfully finished type check! |
Empty file.
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 @@ | ||
Reading paths passed as a command line arguments... | ||
Only files that end with .sql or .bq are analyzed. | ||
Reading "samples/tvf/call_tvf.sql" | ||
Reading "samples/tvf/define_tvf.sql" |
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 @@ | ||
digraph G { | ||
0 [label="samples/tvf/call_tvf.sql", shape="", type=query]; | ||
1 [label="samples/tvf/define_tvf.sql", shape="", type=query]; | ||
1->0 ; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.
7 changes: 7 additions & 0 deletions
7
samples/tvf/side_effect_first_with_tables/alphacheck_stdout.txt
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,7 @@ | ||
Analyzing "samples/tvf/define_tvf.sql" | ||
Create Table Function Statement analyzed, adding function to catalog... | ||
SUCCESS: analysis finished! | ||
Analyzing "samples/tvf/call_tvf.sql" | ||
DDL analyzed, adding table to catalog... | ||
SUCCESS: analysis finished! | ||
Successfully finished type check! |
Empty file.
4 changes: 4 additions & 0 deletions
4
samples/tvf/side_effect_first_with_tables/alphadag_stdout.txt
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 @@ | ||
Reading paths passed as a command line arguments... | ||
Only files that end with .sql or .bq are analyzed. | ||
Reading "samples/tvf/call_tvf.sql" | ||
Reading "samples/tvf/define_tvf.sql" |
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,7 @@ | ||
digraph G { | ||
0 [label="samples/tvf/call_tvf.sql", shape="", type=query]; | ||
1 [label="samples/tvf/define_tvf.sql", shape="", type=query]; | ||
2 [label="dataset.tvf_table", shape=box, type=table]; | ||
0->2 ; | ||
1->0 ; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.
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,7 @@ | ||
Analyzing "samples/tvf/define_tvf.sql" | ||
Create Table Function Statement analyzed, adding function to catalog... | ||
SUCCESS: analysis finished! | ||
Analyzing "samples/tvf/call_tvf.sql" | ||
DDL analyzed, adding table to catalog... | ||
SUCCESS: analysis finished! | ||
Successfully finished type check! |
Empty file.
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 @@ | ||
Reading paths passed as a command line arguments... | ||
Only files that end with .sql or .bq are analyzed. | ||
Reading "samples/tvf/call_tvf.sql" | ||
Reading "samples/tvf/define_tvf.sql" |
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,9 @@ | ||
digraph G { | ||
0 [label="samples/tvf/call_tvf.sql", shape="", type=query]; | ||
1 [label="samples/tvf/define_tvf.sql", shape="", type=query]; | ||
2 [label="dataset.tvf_table", shape=box, type=table]; | ||
3 [label="dataset.tvf", shape=cds, type=function]; | ||
0->2 ; | ||
1->3 ; | ||
3->0 ; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.
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,7 @@ | ||
Analyzing "samples/tvf/define_tvf.sql" | ||
Create Table Function Statement analyzed, adding function to catalog... | ||
SUCCESS: analysis finished! | ||
Analyzing "samples/tvf/call_tvf.sql" | ||
DDL analyzed, adding table to catalog... | ||
SUCCESS: analysis finished! | ||
Successfully finished type check! |
Empty file.
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 @@ | ||
Reading paths passed as a command line arguments... | ||
Only files that end with .sql or .bq are analyzed. | ||
Reading "samples/tvf/call_tvf.sql" | ||
Reading "samples/tvf/define_tvf.sql" |
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,7 @@ | ||
digraph G { | ||
0 [label="samples/tvf/call_tvf.sql", shape="", type=query]; | ||
1 [label="samples/tvf/define_tvf.sql", shape="", type=query]; | ||
2 [label="dataset.tvf", shape=cds, type=function]; | ||
1->2 ; | ||
2->0 ; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.
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,7 @@ | ||
Analyzing "samples/tvf/define_tvf.sql" | ||
Create Table Function Statement analyzed, adding function to catalog... | ||
SUCCESS: analysis finished! | ||
Analyzing "samples/tvf/call_tvf.sql" | ||
DDL analyzed, adding table to catalog... | ||
SUCCESS: analysis finished! | ||
Successfully finished type check! |
Empty file.
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 @@ | ||
Reading paths passed as a command line arguments... | ||
Only files that end with .sql or .bq are analyzed. | ||
Reading "samples/tvf/call_tvf.sql" | ||
Reading "samples/tvf/define_tvf.sql" |
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,7 @@ | ||
digraph G { | ||
0 [label="samples/tvf/call_tvf.sql", shape="", type=query]; | ||
1 [label="samples/tvf/define_tvf.sql", shape="", type=query]; | ||
2 [label="dataset.tvf_table", shape=box, type=table]; | ||
0->2 ; | ||
1->0 ; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.