-
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 #59 from Matts966/feature/52-with-tables-and-funct…
…ions Add options --with_tables and --with_functions
- Loading branch information
Showing
132 changed files
with
662 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
digraph G { | ||
0[label="samples/create-temp-table-test/reference.sql"]; | ||
1[label="samples/create-temp-table-test/temp_table.sql"]; | ||
0 [label="samples/create-temp-table-test/reference.sql", shape="", type=query]; | ||
1 [label="samples/create-temp-table-test/temp_table.sql", shape="", type=query]; | ||
} |
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/create-temp-table-test/temp_table.sql" | ||
Reading "samples/create-temp-table-test/reference.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,4 @@ | ||
digraph G { | ||
0 [label="samples/create-temp-table-test/reference.sql", shape="", type=query]; | ||
1 [label="samples/create-temp-table-test/temp_table.sql", shape="", type=query]; | ||
} |
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.
4 changes: 4 additions & 0 deletions
4
samples/create-temp-table-test/with_funtcions/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/create-temp-table-test/temp_table.sql" | ||
Reading "samples/create-temp-table-test/reference.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,4 @@ | ||
digraph G { | ||
0 [label="samples/create-temp-table-test/reference.sql", shape="", type=query]; | ||
1 [label="samples/create-temp-table-test/temp_table.sql", shape="", type=query]; | ||
} |
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.
4 changes: 4 additions & 0 deletions
4
samples/create-temp-table-test/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/create-temp-table-test/temp_table.sql" | ||
Reading "samples/create-temp-table-test/reference.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,4 @@ | ||
digraph G { | ||
0 [label="samples/create-temp-table-test/reference.sql", shape="", type=query]; | ||
1 [label="samples/create-temp-table-test/temp_table.sql", shape="", type=query]; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
digraph G { | ||
0[label="samples/drop-test/create-and-drop.sql"]; | ||
0 [label="samples/drop-test/create-and-drop.sql", shape="", type=query]; | ||
} |
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,3 @@ | ||
Reading paths passed as a command line arguments... | ||
Only files that end with .sql or .bq are analyzed. | ||
Reading "samples/drop-test/create-and-drop.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/drop-test/create-and-drop.sql", shape="", type=query]; | ||
1 [label=table, shape=box, type=table]; | ||
0->1 ; | ||
} |
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,3 @@ | ||
Reading paths passed as a command line arguments... | ||
Only files that end with .sql or .bq are analyzed. | ||
Reading "samples/drop-test/create-and-drop.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,3 @@ | ||
digraph G { | ||
0 [label="samples/drop-test/create-and-drop.sql", shape="", type=query]; | ||
} |
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,3 @@ | ||
Reading paths passed as a command line arguments... | ||
Only files that end with .sql or .bq are analyzed. | ||
Reading "samples/drop-test/create-and-drop.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/drop-test/create-and-drop.sql", shape="", type=query]; | ||
1 [label=table, shape=box, type=table]; | ||
0->1 ; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
8 changes: 4 additions & 4 deletions
8
samples/sample-arbitrary-dependency-graph-with-drop-statement/dag.dot
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,8 +1,8 @@ | ||
digraph G { | ||
0[label="samples/sample-arbitrary-dependency-graph-with-drop-statement/insert.sql"]; | ||
1[label="samples/sample-arbitrary-dependency-graph-with-drop-statement/insert_before_reference.sql"]; | ||
2[label="samples/sample-arbitrary-dependency-graph-with-drop-statement/select.sql"]; | ||
3[label="samples/sample-arbitrary-dependency-graph-with-drop-statement/select2.sql"]; | ||
0 [label="samples/sample-arbitrary-dependency-graph-with-drop-statement/insert.sql", shape="", type=query]; | ||
1 [label="samples/sample-arbitrary-dependency-graph-with-drop-statement/insert_before_reference.sql", shape="", type=query]; | ||
2 [label="samples/sample-arbitrary-dependency-graph-with-drop-statement/select.sql", shape="", type=query]; | ||
3 [label="samples/sample-arbitrary-dependency-graph-with-drop-statement/select2.sql", shape="", type=query]; | ||
1->2 ; | ||
1->3 ; | ||
} |
Empty file.
10 changes: 10 additions & 0 deletions
10
samples/sample-arbitrary-dependency-graph-with-drop-statement/with_all/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,10 @@ | ||
Reading paths passed as a command line arguments... | ||
Only files that end with .sql or .bq are analyzed. | ||
Reading "samples/sample-arbitrary-dependency-graph-with-drop-statement/select.sql" | ||
Reading "samples/sample-arbitrary-dependency-graph-with-drop-statement/select2.sql" | ||
Reading "samples/sample-arbitrary-dependency-graph-with-drop-statement/insert.sql" | ||
Warning!!! the target of INSERT statement dataset.main is not created in the same script!!! | ||
This script is not idempotent. See https://github.com/Matts966/alphasql/issues/5#issuecomment-735209829 for more details. | ||
Reading "samples/sample-arbitrary-dependency-graph-with-drop-statement/insert_before_reference.sql" | ||
Warning!!! the target of INSERT statement dataset.main is not created in the same script!!! | ||
This script is not idempotent. See https://github.com/Matts966/alphasql/issues/5#issuecomment-735209829 for more details. |
15 changes: 15 additions & 0 deletions
15
samples/sample-arbitrary-dependency-graph-with-drop-statement/with_all/dag.dot
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,15 @@ | ||
digraph G { | ||
0 [label="samples/sample-arbitrary-dependency-graph-with-drop-statement/insert.sql", shape="", type=query]; | ||
1 [label="samples/sample-arbitrary-dependency-graph-with-drop-statement/insert_before_reference.sql", shape="", type=query]; | ||
2 [label="samples/sample-arbitrary-dependency-graph-with-drop-statement/select.sql", shape="", type=query]; | ||
3 [label="samples/sample-arbitrary-dependency-graph-with-drop-statement/select2.sql", shape="", type=query]; | ||
4 [label="dataset.dependency", shape=box, type=table]; | ||
5 [label="dataset.main", shape=box, type=table]; | ||
1->4 ; | ||
4->2 ; | ||
4->3 ; | ||
5->2 ; | ||
5->3 ; | ||
5->0 ; | ||
5->1 ; | ||
} |
Binary file added
BIN
+57.6 KB
samples/sample-arbitrary-dependency-graph-with-drop-statement/with_all/dag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
samples/sample-arbitrary-dependency-graph-with-drop-statement/with_all/external_tables.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 @@ | ||
dataset.main |
Empty file.
10 changes: 10 additions & 0 deletions
10
.../sample-arbitrary-dependency-graph-with-drop-statement/with_funtcions/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,10 @@ | ||
Reading paths passed as a command line arguments... | ||
Only files that end with .sql or .bq are analyzed. | ||
Reading "samples/sample-arbitrary-dependency-graph-with-drop-statement/select.sql" | ||
Reading "samples/sample-arbitrary-dependency-graph-with-drop-statement/select2.sql" | ||
Reading "samples/sample-arbitrary-dependency-graph-with-drop-statement/insert.sql" | ||
Warning!!! the target of INSERT statement dataset.main is not created in the same script!!! | ||
This script is not idempotent. See https://github.com/Matts966/alphasql/issues/5#issuecomment-735209829 for more details. | ||
Reading "samples/sample-arbitrary-dependency-graph-with-drop-statement/insert_before_reference.sql" | ||
Warning!!! the target of INSERT statement dataset.main is not created in the same script!!! | ||
This script is not idempotent. See https://github.com/Matts966/alphasql/issues/5#issuecomment-735209829 for more details. |
8 changes: 8 additions & 0 deletions
8
samples/sample-arbitrary-dependency-graph-with-drop-statement/with_funtcions/dag.dot
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 @@ | ||
digraph G { | ||
0 [label="samples/sample-arbitrary-dependency-graph-with-drop-statement/insert.sql", shape="", type=query]; | ||
1 [label="samples/sample-arbitrary-dependency-graph-with-drop-statement/insert_before_reference.sql", shape="", type=query]; | ||
2 [label="samples/sample-arbitrary-dependency-graph-with-drop-statement/select.sql", shape="", type=query]; | ||
3 [label="samples/sample-arbitrary-dependency-graph-with-drop-statement/select2.sql", shape="", type=query]; | ||
1->2 ; | ||
1->3 ; | ||
} |
Binary file added
BIN
+35.6 KB
...es/sample-arbitrary-dependency-graph-with-drop-statement/with_funtcions/dag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
.../sample-arbitrary-dependency-graph-with-drop-statement/with_funtcions/external_tables.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 @@ | ||
dataset.main |
Empty file.
10 changes: 10 additions & 0 deletions
10
...les/sample-arbitrary-dependency-graph-with-drop-statement/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,10 @@ | ||
Reading paths passed as a command line arguments... | ||
Only files that end with .sql or .bq are analyzed. | ||
Reading "samples/sample-arbitrary-dependency-graph-with-drop-statement/select.sql" | ||
Reading "samples/sample-arbitrary-dependency-graph-with-drop-statement/select2.sql" | ||
Reading "samples/sample-arbitrary-dependency-graph-with-drop-statement/insert.sql" | ||
Warning!!! the target of INSERT statement dataset.main is not created in the same script!!! | ||
This script is not idempotent. See https://github.com/Matts966/alphasql/issues/5#issuecomment-735209829 for more details. | ||
Reading "samples/sample-arbitrary-dependency-graph-with-drop-statement/insert_before_reference.sql" | ||
Warning!!! the target of INSERT statement dataset.main is not created in the same script!!! | ||
This script is not idempotent. See https://github.com/Matts966/alphasql/issues/5#issuecomment-735209829 for more details. |
15 changes: 15 additions & 0 deletions
15
samples/sample-arbitrary-dependency-graph-with-drop-statement/with_tables/dag.dot
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,15 @@ | ||
digraph G { | ||
0 [label="samples/sample-arbitrary-dependency-graph-with-drop-statement/insert.sql", shape="", type=query]; | ||
1 [label="samples/sample-arbitrary-dependency-graph-with-drop-statement/insert_before_reference.sql", shape="", type=query]; | ||
2 [label="samples/sample-arbitrary-dependency-graph-with-drop-statement/select.sql", shape="", type=query]; | ||
3 [label="samples/sample-arbitrary-dependency-graph-with-drop-statement/select2.sql", shape="", type=query]; | ||
4 [label="dataset.dependency", shape=box, type=table]; | ||
5 [label="dataset.main", shape=box, type=table]; | ||
1->4 ; | ||
4->2 ; | ||
4->3 ; | ||
5->2 ; | ||
5->3 ; | ||
5->0 ; | ||
5->1 ; | ||
} |
Binary file added
BIN
+57.6 KB
samples/sample-arbitrary-dependency-graph-with-drop-statement/with_tables/dag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
...les/sample-arbitrary-dependency-graph-with-drop-statement/with_tables/external_tables.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 @@ | ||
dataset.main |
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,6 +1,6 @@ | ||
Analyzing "samples/sample-ci/sample/create_datawarehouse3.sql" | ||
ERROR: INVALID_ARGUMENT: Table not found: `bigquery-public-data.samples.gsod` [at samples/sample-ci/sample/create_datawarehouse3.sql:5:3] | ||
catalog: | ||
tablename1 | ||
tablename2 | ||
dataset.main | ||
tablename2 | ||
tablename1 |
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
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,15 @@ | ||
Reading paths passed as a command line arguments... | ||
Only files that end with .sql or .bq are analyzed. | ||
Reading "samples/sample-ci/sample/create_interim1.sql" | ||
Reading "samples/sample-ci/sample/create_interim3.sql" | ||
Reading "samples/sample-ci/sample/create_interim2.sql" | ||
Reading "samples/sample-ci/sample/update_interim2.sql" | ||
Warning!!! the target of UPDATE statement interim2 is not created in the same script!!! | ||
This script is not idempotent. See https://github.com/Matts966/alphasql/issues/5#issuecomment-735209829 for more details. | ||
Reading "samples/sample-ci/sample/insert_into_interim1.sql" | ||
Warning!!! the target of INSERT statement interim1 is not created in the same script!!! | ||
This script is not idempotent. See https://github.com/Matts966/alphasql/issues/5#issuecomment-735209829 for more details. | ||
Reading "samples/sample-ci/sample/create_datawarehouse1.sql" | ||
Reading "samples/sample-ci/sample/create_datawarehouse3.sql" | ||
Reading "samples/sample-ci/sample/create_datawarehouse2.sql" | ||
Reading "samples/sample-ci/sample/create_mart.sql" |
Oops, something went wrong.