diff --git a/Makefile b/Makefile index 3c551016..d418b1db 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,9 @@ with_functions: --external_required_tables_output_path $$sample_path/with_functions/external_tables.txt \ > $$sample_path/with_functions/alphadag_stdout.txt 2> $$sample_path/with_functions/alphadag_stderr.txt; \ dot -Tpng $$sample_path/with_functions/dag.dot -o $$sample_path/with_functions/dag.png; \ + alphacheck $$sample_path/with_functions/dag.dot \ + --json_schema_path ./samples/sample-schema.json \ + > $$sample_path/with_functions/alphacheck_stdout.txt 2> $$sample_path/with_functions/alphacheck_stderr.txt || echo alphacheck --with_functions $$sample_path failed; \ done; .PHONY: with_tables @@ -44,6 +47,9 @@ with_tables: --external_required_tables_output_path $$sample_path/with_tables/external_tables.txt \ > $$sample_path/with_tables/alphadag_stdout.txt 2> $$sample_path/with_tables/alphadag_stderr.txt; \ dot -Tpng $$sample_path/with_tables/dag.dot -o $$sample_path/with_tables/dag.png; \ + alphacheck $$sample_path/with_tables/dag.dot \ + --json_schema_path ./samples/sample-schema.json \ + > $$sample_path/with_tables/alphacheck_stdout.txt 2> $$sample_path/with_tables/alphacheck_stderr.txt || echo alphacheck --with_tables $$sample_path failed; \ done; .PHONY: with_all @@ -54,6 +60,9 @@ with_all: --external_required_tables_output_path $$sample_path/with_all/external_tables.txt \ > $$sample_path/with_all/alphadag_stdout.txt 2> $$sample_path/with_all/alphadag_stderr.txt; \ dot -Tpng $$sample_path/with_all/dag.dot -o $$sample_path/with_all/dag.png; \ + alphacheck $$sample_path/with_all/dag.dot \ + --json_schema_path ./samples/sample-schema.json \ + > $$sample_path/with_all/alphacheck_stdout.txt 2> $$sample_path/with_all/alphacheck_stderr.txt || echo alphacheck with all resources $$sample_path failed; \ done; .PHONY: side_effect_first @@ -64,8 +73,12 @@ side_effect_first: --external_required_tables_output_path $$sample_path/side_effect_first/external_tables.txt \ > $$sample_path/side_effect_first/alphadag_stdout.txt 2> $$sample_path/side_effect_first/alphadag_stderr.txt; \ dot -Tpng $$sample_path/side_effect_first/dag.dot -o $$sample_path/side_effect_first/dag.png; \ + alphacheck $$sample_path/side_effect_first/dag.dot \ + --json_schema_path ./samples/sample-schema.json \ + > $$sample_path/side_effect_first/alphacheck_stdout.txt 2> $$sample_path/side_effect_first/alphacheck_stderr.txt || echo alphacheck --side_effect_first $$sample_path failed; \ done; +.PHONY: side_effect_first_with_tables side_effect_first_with_tables: find samples -mindepth 1 -maxdepth 1 -type d | while read sample_path; do \ mkdir -p $$sample_path/side_effect_first_with_tables; \ @@ -73,6 +86,9 @@ side_effect_first_with_tables: --external_required_tables_output_path $$sample_path/side_effect_first_with_tables/external_tables.txt \ > $$sample_path/side_effect_first_with_tables/alphadag_stdout.txt 2> $$sample_path/side_effect_first_with_tables/alphadag_stderr.txt; \ dot -Tpng $$sample_path/side_effect_first_with_tables/dag.dot -o $$sample_path/side_effect_first_with_tables/dag.png; \ + alphacheck $$sample_path/side_effect_first_with_tables/dag.dot \ + --json_schema_path ./samples/sample-schema.json \ + > $$sample_path/side_effect_first_with_tables/alphacheck_stdout.txt 2> $$sample_path/side_effect_first_with_tables/alphacheck_stderr.txt || echo alphacheck --side_effect_first --with_tables $$sample_path failed; \ done; .PHONY: test diff --git a/alphasql/alphacheck.cc b/alphasql/alphacheck.cc index d8a92757..4fa0a0b1 100644 --- a/alphasql/alphacheck.cc +++ b/alphasql/alphacheck.cc @@ -348,15 +348,19 @@ struct cycle_detector : public boost::dfs_visitor<> { bool &_has_cycle; }; +struct DotVertex { + std::string name; + std::string type; +}; + bool GetExecutionPlan(const std::string dot_path, std::vector &execution_plan) { using namespace boost; - typedef adjacency_list> - Graph; + typedef adjacency_list Graph; Graph g; dynamic_properties dp(ignore_other_properties); - dp.property("label", get(vertex_name, g)); + dp.property("label", get(&DotVertex::name, g)); + dp.property("type", get(&DotVertex::type, g)); std::filesystem::path file_path(dot_path); std::ifstream file(file_path, std::ios::in); if (!boost::read_graphviz(file, g, dp)) { @@ -374,9 +378,12 @@ bool GetExecutionPlan(const std::string dot_path, std::list result; topological_sort(g, std::front_inserter(result)); - property_map::type names = get(vertex_name, g); + property_map::type names = get(&DotVertex::name, g); + property_map::type types = get(&DotVertex::type, g); for (int i : result) { - execution_plan.push_back(names[i]); + if (types[i] == "query") { + execution_plan.push_back(names[i]); + } } return true; } diff --git a/samples/create-temp-table-test/side_effect_first/alphacheck_stderr.txt b/samples/create-temp-table-test/side_effect_first/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/create-temp-table-test/side_effect_first/alphacheck_stdout.txt b/samples/create-temp-table-test/side_effect_first/alphacheck_stdout.txt new file mode 100644 index 00000000..ae874fcb --- /dev/null +++ b/samples/create-temp-table-test/side_effect_first/alphacheck_stdout.txt @@ -0,0 +1,9 @@ +Analyzing "samples/create-temp-table-test/temp_table.sql" +DDL analyzed, adding table to catalog... +Removing temporary table tmp +SUCCESS: analysis finished! +Analyzing "samples/create-temp-table-test/reference.sql" +DDL analyzed, adding table to catalog... +Removing temporary table tmp +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/create-temp-table-test/side_effect_first_with_tables/alphacheck_stderr.txt b/samples/create-temp-table-test/side_effect_first_with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/create-temp-table-test/side_effect_first_with_tables/alphacheck_stdout.txt b/samples/create-temp-table-test/side_effect_first_with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..ae874fcb --- /dev/null +++ b/samples/create-temp-table-test/side_effect_first_with_tables/alphacheck_stdout.txt @@ -0,0 +1,9 @@ +Analyzing "samples/create-temp-table-test/temp_table.sql" +DDL analyzed, adding table to catalog... +Removing temporary table tmp +SUCCESS: analysis finished! +Analyzing "samples/create-temp-table-test/reference.sql" +DDL analyzed, adding table to catalog... +Removing temporary table tmp +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/create-temp-table-test/with_all/alphacheck_stderr.txt b/samples/create-temp-table-test/with_all/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/create-temp-table-test/with_all/alphacheck_stdout.txt b/samples/create-temp-table-test/with_all/alphacheck_stdout.txt new file mode 100644 index 00000000..ae874fcb --- /dev/null +++ b/samples/create-temp-table-test/with_all/alphacheck_stdout.txt @@ -0,0 +1,9 @@ +Analyzing "samples/create-temp-table-test/temp_table.sql" +DDL analyzed, adding table to catalog... +Removing temporary table tmp +SUCCESS: analysis finished! +Analyzing "samples/create-temp-table-test/reference.sql" +DDL analyzed, adding table to catalog... +Removing temporary table tmp +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/create-temp-table-test/with_functions/alphacheck_stderr.txt b/samples/create-temp-table-test/with_functions/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/create-temp-table-test/with_functions/alphacheck_stdout.txt b/samples/create-temp-table-test/with_functions/alphacheck_stdout.txt new file mode 100644 index 00000000..ae874fcb --- /dev/null +++ b/samples/create-temp-table-test/with_functions/alphacheck_stdout.txt @@ -0,0 +1,9 @@ +Analyzing "samples/create-temp-table-test/temp_table.sql" +DDL analyzed, adding table to catalog... +Removing temporary table tmp +SUCCESS: analysis finished! +Analyzing "samples/create-temp-table-test/reference.sql" +DDL analyzed, adding table to catalog... +Removing temporary table tmp +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/create-temp-table-test/with_tables/alphacheck_stderr.txt b/samples/create-temp-table-test/with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/create-temp-table-test/with_tables/alphacheck_stdout.txt b/samples/create-temp-table-test/with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..ae874fcb --- /dev/null +++ b/samples/create-temp-table-test/with_tables/alphacheck_stdout.txt @@ -0,0 +1,9 @@ +Analyzing "samples/create-temp-table-test/temp_table.sql" +DDL analyzed, adding table to catalog... +Removing temporary table tmp +SUCCESS: analysis finished! +Analyzing "samples/create-temp-table-test/reference.sql" +DDL analyzed, adding table to catalog... +Removing temporary table tmp +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/drop-test/side_effect_first/alphacheck_stderr.txt b/samples/drop-test/side_effect_first/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/drop-test/side_effect_first/alphacheck_stdout.txt b/samples/drop-test/side_effect_first/alphacheck_stdout.txt new file mode 100644 index 00000000..d75d0d21 --- /dev/null +++ b/samples/drop-test/side_effect_first/alphacheck_stdout.txt @@ -0,0 +1,7 @@ +Analyzing "samples/drop-test/create-and-drop.sql" +DDL analyzed, adding table to catalog... +Drop Statement analyzed, dropping table from catalog... +DDL analyzed, adding table to catalog... +Drop Statement analyzed, dropping table from catalog... +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/drop-test/side_effect_first_with_tables/alphacheck_stderr.txt b/samples/drop-test/side_effect_first_with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/drop-test/side_effect_first_with_tables/alphacheck_stdout.txt b/samples/drop-test/side_effect_first_with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..d75d0d21 --- /dev/null +++ b/samples/drop-test/side_effect_first_with_tables/alphacheck_stdout.txt @@ -0,0 +1,7 @@ +Analyzing "samples/drop-test/create-and-drop.sql" +DDL analyzed, adding table to catalog... +Drop Statement analyzed, dropping table from catalog... +DDL analyzed, adding table to catalog... +Drop Statement analyzed, dropping table from catalog... +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/drop-test/with_all/alphacheck_stderr.txt b/samples/drop-test/with_all/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/drop-test/with_all/alphacheck_stdout.txt b/samples/drop-test/with_all/alphacheck_stdout.txt new file mode 100644 index 00000000..d75d0d21 --- /dev/null +++ b/samples/drop-test/with_all/alphacheck_stdout.txt @@ -0,0 +1,7 @@ +Analyzing "samples/drop-test/create-and-drop.sql" +DDL analyzed, adding table to catalog... +Drop Statement analyzed, dropping table from catalog... +DDL analyzed, adding table to catalog... +Drop Statement analyzed, dropping table from catalog... +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/drop-test/with_functions/alphacheck_stderr.txt b/samples/drop-test/with_functions/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/drop-test/with_functions/alphacheck_stdout.txt b/samples/drop-test/with_functions/alphacheck_stdout.txt new file mode 100644 index 00000000..d75d0d21 --- /dev/null +++ b/samples/drop-test/with_functions/alphacheck_stdout.txt @@ -0,0 +1,7 @@ +Analyzing "samples/drop-test/create-and-drop.sql" +DDL analyzed, adding table to catalog... +Drop Statement analyzed, dropping table from catalog... +DDL analyzed, adding table to catalog... +Drop Statement analyzed, dropping table from catalog... +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/drop-test/with_tables/alphacheck_stderr.txt b/samples/drop-test/with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/drop-test/with_tables/alphacheck_stdout.txt b/samples/drop-test/with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..d75d0d21 --- /dev/null +++ b/samples/drop-test/with_tables/alphacheck_stdout.txt @@ -0,0 +1,7 @@ +Analyzing "samples/drop-test/create-and-drop.sql" +DDL analyzed, adding table to catalog... +Drop Statement analyzed, dropping table from catalog... +DDL analyzed, adding table to catalog... +Drop Statement analyzed, dropping table from catalog... +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/ml/side_effect_first/alphacheck_stderr.txt b/samples/ml/side_effect_first/alphacheck_stderr.txt new file mode 100644 index 00000000..7c8d1446 --- /dev/null +++ b/samples/ml/side_effect_first/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Table not found: datawarehouse2 [at samples/ml/create_input.sql:5:3] diff --git a/samples/ml/side_effect_first/alphacheck_stdout.txt b/samples/ml/side_effect_first/alphacheck_stdout.txt new file mode 100644 index 00000000..15dca481 --- /dev/null +++ b/samples/ml/side_effect_first/alphacheck_stdout.txt @@ -0,0 +1,5 @@ +Analyzing "samples/ml/create_input.sql" +catalog: + dataset.main + tablename1 + tablename2 diff --git a/samples/ml/side_effect_first_with_tables/alphacheck_stderr.txt b/samples/ml/side_effect_first_with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..7c8d1446 --- /dev/null +++ b/samples/ml/side_effect_first_with_tables/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Table not found: datawarehouse2 [at samples/ml/create_input.sql:5:3] diff --git a/samples/ml/side_effect_first_with_tables/alphacheck_stdout.txt b/samples/ml/side_effect_first_with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..15dca481 --- /dev/null +++ b/samples/ml/side_effect_first_with_tables/alphacheck_stdout.txt @@ -0,0 +1,5 @@ +Analyzing "samples/ml/create_input.sql" +catalog: + dataset.main + tablename1 + tablename2 diff --git a/samples/ml/with_all/alphacheck_stderr.txt b/samples/ml/with_all/alphacheck_stderr.txt new file mode 100644 index 00000000..7c8d1446 --- /dev/null +++ b/samples/ml/with_all/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Table not found: datawarehouse2 [at samples/ml/create_input.sql:5:3] diff --git a/samples/ml/with_all/alphacheck_stdout.txt b/samples/ml/with_all/alphacheck_stdout.txt new file mode 100644 index 00000000..15dca481 --- /dev/null +++ b/samples/ml/with_all/alphacheck_stdout.txt @@ -0,0 +1,5 @@ +Analyzing "samples/ml/create_input.sql" +catalog: + dataset.main + tablename1 + tablename2 diff --git a/samples/ml/with_functions/alphacheck_stderr.txt b/samples/ml/with_functions/alphacheck_stderr.txt new file mode 100644 index 00000000..7c8d1446 --- /dev/null +++ b/samples/ml/with_functions/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Table not found: datawarehouse2 [at samples/ml/create_input.sql:5:3] diff --git a/samples/ml/with_functions/alphacheck_stdout.txt b/samples/ml/with_functions/alphacheck_stdout.txt new file mode 100644 index 00000000..15dca481 --- /dev/null +++ b/samples/ml/with_functions/alphacheck_stdout.txt @@ -0,0 +1,5 @@ +Analyzing "samples/ml/create_input.sql" +catalog: + dataset.main + tablename1 + tablename2 diff --git a/samples/ml/with_tables/alphacheck_stderr.txt b/samples/ml/with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..7c8d1446 --- /dev/null +++ b/samples/ml/with_tables/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Table not found: datawarehouse2 [at samples/ml/create_input.sql:5:3] diff --git a/samples/ml/with_tables/alphacheck_stdout.txt b/samples/ml/with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..15dca481 --- /dev/null +++ b/samples/ml/with_tables/alphacheck_stdout.txt @@ -0,0 +1,5 @@ +Analyzing "samples/ml/create_input.sql" +catalog: + dataset.main + tablename1 + tablename2 diff --git a/samples/mutasions-and-query/side_effect_first/alphacheck_stderr.txt b/samples/mutasions-and-query/side_effect_first/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/mutasions-and-query/side_effect_first/alphacheck_stdout.txt b/samples/mutasions-and-query/side_effect_first/alphacheck_stdout.txt new file mode 100644 index 00000000..c6dfbe5d --- /dev/null +++ b/samples/mutasions-and-query/side_effect_first/alphacheck_stdout.txt @@ -0,0 +1,17 @@ +Analyzing "samples/mutasions-and-query/mutation3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/query1.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/mutation2.sql" +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/query3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/mutation1.sql" +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/query2.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/mutasions-and-query/side_effect_first_with_tables/alphacheck_stderr.txt b/samples/mutasions-and-query/side_effect_first_with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/mutasions-and-query/side_effect_first_with_tables/alphacheck_stdout.txt b/samples/mutasions-and-query/side_effect_first_with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..c6dfbe5d --- /dev/null +++ b/samples/mutasions-and-query/side_effect_first_with_tables/alphacheck_stdout.txt @@ -0,0 +1,17 @@ +Analyzing "samples/mutasions-and-query/mutation3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/query1.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/mutation2.sql" +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/query3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/mutation1.sql" +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/query2.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/mutasions-and-query/with_all/alphacheck_stderr.txt b/samples/mutasions-and-query/with_all/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/mutasions-and-query/with_all/alphacheck_stdout.txt b/samples/mutasions-and-query/with_all/alphacheck_stdout.txt new file mode 100644 index 00000000..cee64d9d --- /dev/null +++ b/samples/mutasions-and-query/with_all/alphacheck_stdout.txt @@ -0,0 +1,17 @@ +Analyzing "samples/mutasions-and-query/mutation3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/query1.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/query3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/query2.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/mutation2.sql" +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/mutation1.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/mutasions-and-query/with_functions/alphacheck_stderr.txt b/samples/mutasions-and-query/with_functions/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/mutasions-and-query/with_functions/alphacheck_stdout.txt b/samples/mutasions-and-query/with_functions/alphacheck_stdout.txt new file mode 100644 index 00000000..949244ea --- /dev/null +++ b/samples/mutasions-and-query/with_functions/alphacheck_stdout.txt @@ -0,0 +1,17 @@ +Analyzing "samples/mutasions-and-query/query3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/query2.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/mutation3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/query1.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/mutation2.sql" +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/mutation1.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/mutasions-and-query/with_tables/alphacheck_stderr.txt b/samples/mutasions-and-query/with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/mutasions-and-query/with_tables/alphacheck_stdout.txt b/samples/mutasions-and-query/with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..cee64d9d --- /dev/null +++ b/samples/mutasions-and-query/with_tables/alphacheck_stdout.txt @@ -0,0 +1,17 @@ +Analyzing "samples/mutasions-and-query/mutation3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/query1.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/query3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/query2.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/mutation2.sql" +SUCCESS: analysis finished! +Analyzing "samples/mutasions-and-query/mutation1.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-any-type/side_effect_first/alphacheck_stderr.txt b/samples/sample-any-type/side_effect_first/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-any-type/side_effect_first/alphacheck_stdout.txt b/samples/sample-any-type/side_effect_first/alphacheck_stdout.txt new file mode 100644 index 00000000..4217b12a --- /dev/null +++ b/samples/sample-any-type/side_effect_first/alphacheck_stdout.txt @@ -0,0 +1,7 @@ +Analyzing "samples/sample-any-type/dedup.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-any-type/dedup_count.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-any-type/side_effect_first_with_tables/alphacheck_stderr.txt b/samples/sample-any-type/side_effect_first_with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-any-type/side_effect_first_with_tables/alphacheck_stdout.txt b/samples/sample-any-type/side_effect_first_with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..4217b12a --- /dev/null +++ b/samples/sample-any-type/side_effect_first_with_tables/alphacheck_stdout.txt @@ -0,0 +1,7 @@ +Analyzing "samples/sample-any-type/dedup.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-any-type/dedup_count.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-any-type/with_all/alphacheck_stderr.txt b/samples/sample-any-type/with_all/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-any-type/with_all/alphacheck_stdout.txt b/samples/sample-any-type/with_all/alphacheck_stdout.txt new file mode 100644 index 00000000..4217b12a --- /dev/null +++ b/samples/sample-any-type/with_all/alphacheck_stdout.txt @@ -0,0 +1,7 @@ +Analyzing "samples/sample-any-type/dedup.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-any-type/dedup_count.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-any-type/with_functions/alphacheck_stderr.txt b/samples/sample-any-type/with_functions/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-any-type/with_functions/alphacheck_stdout.txt b/samples/sample-any-type/with_functions/alphacheck_stdout.txt new file mode 100644 index 00000000..4217b12a --- /dev/null +++ b/samples/sample-any-type/with_functions/alphacheck_stdout.txt @@ -0,0 +1,7 @@ +Analyzing "samples/sample-any-type/dedup.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-any-type/dedup_count.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-any-type/with_tables/alphacheck_stderr.txt b/samples/sample-any-type/with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-any-type/with_tables/alphacheck_stdout.txt b/samples/sample-any-type/with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..4217b12a --- /dev/null +++ b/samples/sample-any-type/with_tables/alphacheck_stdout.txt @@ -0,0 +1,7 @@ +Analyzing "samples/sample-any-type/dedup.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-any-type/dedup_count.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-arbitrary-dependency-graph-with-drop-statement/side_effect_first/alphacheck_stderr.txt b/samples/sample-arbitrary-dependency-graph-with-drop-statement/side_effect_first/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-arbitrary-dependency-graph-with-drop-statement/side_effect_first/alphacheck_stdout.txt b/samples/sample-arbitrary-dependency-graph-with-drop-statement/side_effect_first/alphacheck_stdout.txt new file mode 100644 index 00000000..7a185c4f --- /dev/null +++ b/samples/sample-arbitrary-dependency-graph-with-drop-statement/side_effect_first/alphacheck_stdout.txt @@ -0,0 +1,12 @@ +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/insert_before_reference.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/insert.sql" +SUCCESS: analysis finished! +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/select2.sql" +Drop Statement analyzed, dropping table from catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/select.sql" +Drop Statement analyzed, dropping table from catalog... +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-arbitrary-dependency-graph-with-drop-statement/side_effect_first_with_tables/alphacheck_stderr.txt b/samples/sample-arbitrary-dependency-graph-with-drop-statement/side_effect_first_with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-arbitrary-dependency-graph-with-drop-statement/side_effect_first_with_tables/alphacheck_stdout.txt b/samples/sample-arbitrary-dependency-graph-with-drop-statement/side_effect_first_with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..7a185c4f --- /dev/null +++ b/samples/sample-arbitrary-dependency-graph-with-drop-statement/side_effect_first_with_tables/alphacheck_stdout.txt @@ -0,0 +1,12 @@ +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/insert_before_reference.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/insert.sql" +SUCCESS: analysis finished! +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/select2.sql" +Drop Statement analyzed, dropping table from catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/select.sql" +Drop Statement analyzed, dropping table from catalog... +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-arbitrary-dependency-graph-with-drop-statement/with_all/alphacheck_stderr.txt b/samples/sample-arbitrary-dependency-graph-with-drop-statement/with_all/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-arbitrary-dependency-graph-with-drop-statement/with_all/alphacheck_stdout.txt b/samples/sample-arbitrary-dependency-graph-with-drop-statement/with_all/alphacheck_stdout.txt new file mode 100644 index 00000000..7d4df80c --- /dev/null +++ b/samples/sample-arbitrary-dependency-graph-with-drop-statement/with_all/alphacheck_stdout.txt @@ -0,0 +1,12 @@ +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/insert_before_reference.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/select2.sql" +Drop Statement analyzed, dropping table from catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/select.sql" +Drop Statement analyzed, dropping table from catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/insert.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-arbitrary-dependency-graph-with-drop-statement/with_functions/alphacheck_stderr.txt b/samples/sample-arbitrary-dependency-graph-with-drop-statement/with_functions/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-arbitrary-dependency-graph-with-drop-statement/with_functions/alphacheck_stdout.txt b/samples/sample-arbitrary-dependency-graph-with-drop-statement/with_functions/alphacheck_stdout.txt new file mode 100644 index 00000000..7d4df80c --- /dev/null +++ b/samples/sample-arbitrary-dependency-graph-with-drop-statement/with_functions/alphacheck_stdout.txt @@ -0,0 +1,12 @@ +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/insert_before_reference.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/select2.sql" +Drop Statement analyzed, dropping table from catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/select.sql" +Drop Statement analyzed, dropping table from catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/insert.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-arbitrary-dependency-graph-with-drop-statement/with_tables/alphacheck_stderr.txt b/samples/sample-arbitrary-dependency-graph-with-drop-statement/with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-arbitrary-dependency-graph-with-drop-statement/with_tables/alphacheck_stdout.txt b/samples/sample-arbitrary-dependency-graph-with-drop-statement/with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..7d4df80c --- /dev/null +++ b/samples/sample-arbitrary-dependency-graph-with-drop-statement/with_tables/alphacheck_stdout.txt @@ -0,0 +1,12 @@ +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/insert_before_reference.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/select2.sql" +Drop Statement analyzed, dropping table from catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/select.sql" +Drop Statement analyzed, dropping table from catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-arbitrary-dependency-graph-with-drop-statement/insert.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-ci/side_effect_first/alphacheck_stderr.txt b/samples/sample-ci/side_effect_first/alphacheck_stderr.txt new file mode 100644 index 00000000..c4d55125 --- /dev/null +++ b/samples/sample-ci/side_effect_first/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Table not found: `bigquery-public-data.samples.gsod` [at samples/sample-ci/sample/create_datawarehouse3.sql:5:3] diff --git a/samples/sample-ci/side_effect_first/alphacheck_stdout.txt b/samples/sample-ci/side_effect_first/alphacheck_stdout.txt new file mode 100644 index 00000000..1be14586 --- /dev/null +++ b/samples/sample-ci/side_effect_first/alphacheck_stdout.txt @@ -0,0 +1,5 @@ +Analyzing "samples/sample-ci/sample/create_datawarehouse3.sql" +catalog: + dataset.main + tablename1 + tablename2 diff --git a/samples/sample-ci/side_effect_first_with_tables/alphacheck_stderr.txt b/samples/sample-ci/side_effect_first_with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..c4d55125 --- /dev/null +++ b/samples/sample-ci/side_effect_first_with_tables/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Table not found: `bigquery-public-data.samples.gsod` [at samples/sample-ci/sample/create_datawarehouse3.sql:5:3] diff --git a/samples/sample-ci/side_effect_first_with_tables/alphacheck_stdout.txt b/samples/sample-ci/side_effect_first_with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..1be14586 --- /dev/null +++ b/samples/sample-ci/side_effect_first_with_tables/alphacheck_stdout.txt @@ -0,0 +1,5 @@ +Analyzing "samples/sample-ci/sample/create_datawarehouse3.sql" +catalog: + dataset.main + tablename1 + tablename2 diff --git a/samples/sample-ci/with_all/alphacheck_stderr.txt b/samples/sample-ci/with_all/alphacheck_stderr.txt new file mode 100644 index 00000000..c4d55125 --- /dev/null +++ b/samples/sample-ci/with_all/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Table not found: `bigquery-public-data.samples.gsod` [at samples/sample-ci/sample/create_datawarehouse3.sql:5:3] diff --git a/samples/sample-ci/with_all/alphacheck_stdout.txt b/samples/sample-ci/with_all/alphacheck_stdout.txt new file mode 100644 index 00000000..1be14586 --- /dev/null +++ b/samples/sample-ci/with_all/alphacheck_stdout.txt @@ -0,0 +1,5 @@ +Analyzing "samples/sample-ci/sample/create_datawarehouse3.sql" +catalog: + dataset.main + tablename1 + tablename2 diff --git a/samples/sample-ci/with_functions/alphacheck_stderr.txt b/samples/sample-ci/with_functions/alphacheck_stderr.txt new file mode 100644 index 00000000..c4d55125 --- /dev/null +++ b/samples/sample-ci/with_functions/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Table not found: `bigquery-public-data.samples.gsod` [at samples/sample-ci/sample/create_datawarehouse3.sql:5:3] diff --git a/samples/sample-ci/with_functions/alphacheck_stdout.txt b/samples/sample-ci/with_functions/alphacheck_stdout.txt new file mode 100644 index 00000000..1be14586 --- /dev/null +++ b/samples/sample-ci/with_functions/alphacheck_stdout.txt @@ -0,0 +1,5 @@ +Analyzing "samples/sample-ci/sample/create_datawarehouse3.sql" +catalog: + dataset.main + tablename1 + tablename2 diff --git a/samples/sample-ci/with_tables/alphacheck_stderr.txt b/samples/sample-ci/with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..c4d55125 --- /dev/null +++ b/samples/sample-ci/with_tables/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Table not found: `bigquery-public-data.samples.gsod` [at samples/sample-ci/sample/create_datawarehouse3.sql:5:3] diff --git a/samples/sample-ci/with_tables/alphacheck_stdout.txt b/samples/sample-ci/with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..1be14586 --- /dev/null +++ b/samples/sample-ci/with_tables/alphacheck_stdout.txt @@ -0,0 +1,5 @@ +Analyzing "samples/sample-ci/sample/create_datawarehouse3.sql" +catalog: + dataset.main + tablename1 + tablename2 diff --git a/samples/sample-cycle/side_effect_first/alphacheck_stderr.txt b/samples/sample-cycle/side_effect_first/alphacheck_stderr.txt new file mode 100644 index 00000000..18630285 --- /dev/null +++ b/samples/sample-cycle/side_effect_first/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: cycle detected! [at samples/sample-cycle/side_effect_first/dag.dot:1:1] diff --git a/samples/sample-cycle/side_effect_first/alphacheck_stdout.txt b/samples/sample-cycle/side_effect_first/alphacheck_stdout.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-cycle/side_effect_first_with_tables/alphacheck_stderr.txt b/samples/sample-cycle/side_effect_first_with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..487e38a6 --- /dev/null +++ b/samples/sample-cycle/side_effect_first_with_tables/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: cycle detected! [at samples/sample-cycle/side_effect_first_with_tables/dag.dot:1:1] diff --git a/samples/sample-cycle/side_effect_first_with_tables/alphacheck_stdout.txt b/samples/sample-cycle/side_effect_first_with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-cycle/with_all/alphacheck_stderr.txt b/samples/sample-cycle/with_all/alphacheck_stderr.txt new file mode 100644 index 00000000..7e3f34d2 --- /dev/null +++ b/samples/sample-cycle/with_all/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: cycle detected! [at samples/sample-cycle/with_all/dag.dot:1:1] diff --git a/samples/sample-cycle/with_all/alphacheck_stdout.txt b/samples/sample-cycle/with_all/alphacheck_stdout.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-cycle/with_functions/alphacheck_stderr.txt b/samples/sample-cycle/with_functions/alphacheck_stderr.txt new file mode 100644 index 00000000..66246903 --- /dev/null +++ b/samples/sample-cycle/with_functions/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: cycle detected! [at samples/sample-cycle/with_functions/dag.dot:1:1] diff --git a/samples/sample-cycle/with_functions/alphacheck_stdout.txt b/samples/sample-cycle/with_functions/alphacheck_stdout.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-cycle/with_tables/alphacheck_stderr.txt b/samples/sample-cycle/with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..dd6c45ae --- /dev/null +++ b/samples/sample-cycle/with_tables/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: cycle detected! [at samples/sample-cycle/with_tables/dag.dot:1:1] diff --git a/samples/sample-cycle/with_tables/alphacheck_stdout.txt b/samples/sample-cycle/with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-function-dependency/side_effect_first/alphacheck_stderr.txt b/samples/sample-function-dependency/side_effect_first/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-function-dependency/side_effect_first/alphacheck_stdout.txt b/samples/sample-function-dependency/side_effect_first/alphacheck_stdout.txt new file mode 100644 index 00000000..782e22f0 --- /dev/null +++ b/samples/sample-function-dependency/side_effect_first/alphacheck_stdout.txt @@ -0,0 +1,9 @@ +Analyzing "samples/sample-function-dependency/udf2.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-function-dependency/udf1.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-function-dependency/with-udf.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-function-dependency/side_effect_first_with_tables/alphacheck_stderr.txt b/samples/sample-function-dependency/side_effect_first_with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-function-dependency/side_effect_first_with_tables/alphacheck_stdout.txt b/samples/sample-function-dependency/side_effect_first_with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..782e22f0 --- /dev/null +++ b/samples/sample-function-dependency/side_effect_first_with_tables/alphacheck_stdout.txt @@ -0,0 +1,9 @@ +Analyzing "samples/sample-function-dependency/udf2.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-function-dependency/udf1.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-function-dependency/with-udf.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-function-dependency/with_all/alphacheck_stderr.txt b/samples/sample-function-dependency/with_all/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-function-dependency/with_all/alphacheck_stdout.txt b/samples/sample-function-dependency/with_all/alphacheck_stdout.txt new file mode 100644 index 00000000..782e22f0 --- /dev/null +++ b/samples/sample-function-dependency/with_all/alphacheck_stdout.txt @@ -0,0 +1,9 @@ +Analyzing "samples/sample-function-dependency/udf2.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-function-dependency/udf1.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-function-dependency/with-udf.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-function-dependency/with_functions/alphacheck_stderr.txt b/samples/sample-function-dependency/with_functions/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-function-dependency/with_functions/alphacheck_stdout.txt b/samples/sample-function-dependency/with_functions/alphacheck_stdout.txt new file mode 100644 index 00000000..782e22f0 --- /dev/null +++ b/samples/sample-function-dependency/with_functions/alphacheck_stdout.txt @@ -0,0 +1,9 @@ +Analyzing "samples/sample-function-dependency/udf2.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-function-dependency/udf1.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-function-dependency/with-udf.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-function-dependency/with_tables/alphacheck_stderr.txt b/samples/sample-function-dependency/with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-function-dependency/with_tables/alphacheck_stdout.txt b/samples/sample-function-dependency/with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..782e22f0 --- /dev/null +++ b/samples/sample-function-dependency/with_tables/alphacheck_stdout.txt @@ -0,0 +1,9 @@ +Analyzing "samples/sample-function-dependency/udf2.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-function-dependency/udf1.sql" +Create Function Statement analyzed, adding function to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-function-dependency/with-udf.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-undefined/side_effect_first/alphacheck_stderr.txt b/samples/sample-undefined/side_effect_first/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-undefined/side_effect_first/alphacheck_stdout.txt b/samples/sample-undefined/side_effect_first/alphacheck_stdout.txt new file mode 100644 index 00000000..77a97071 --- /dev/null +++ b/samples/sample-undefined/side_effect_first/alphacheck_stdout.txt @@ -0,0 +1,8 @@ +Analyzing "samples/sample-undefined/create.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-undefined/insert.sql" +SUCCESS: analysis finished! +Analyzing "samples/sample-undefined/select.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-undefined/side_effect_first_with_tables/alphacheck_stderr.txt b/samples/sample-undefined/side_effect_first_with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-undefined/side_effect_first_with_tables/alphacheck_stdout.txt b/samples/sample-undefined/side_effect_first_with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..77a97071 --- /dev/null +++ b/samples/sample-undefined/side_effect_first_with_tables/alphacheck_stdout.txt @@ -0,0 +1,8 @@ +Analyzing "samples/sample-undefined/create.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-undefined/insert.sql" +SUCCESS: analysis finished! +Analyzing "samples/sample-undefined/select.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-undefined/with_all/alphacheck_stderr.txt b/samples/sample-undefined/with_all/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-undefined/with_all/alphacheck_stdout.txt b/samples/sample-undefined/with_all/alphacheck_stdout.txt new file mode 100644 index 00000000..e174da5f --- /dev/null +++ b/samples/sample-undefined/with_all/alphacheck_stdout.txt @@ -0,0 +1,8 @@ +Analyzing "samples/sample-undefined/create.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-undefined/select.sql" +SUCCESS: analysis finished! +Analyzing "samples/sample-undefined/insert.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-undefined/with_functions/alphacheck_stderr.txt b/samples/sample-undefined/with_functions/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-undefined/with_functions/alphacheck_stdout.txt b/samples/sample-undefined/with_functions/alphacheck_stdout.txt new file mode 100644 index 00000000..e174da5f --- /dev/null +++ b/samples/sample-undefined/with_functions/alphacheck_stdout.txt @@ -0,0 +1,8 @@ +Analyzing "samples/sample-undefined/create.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-undefined/select.sql" +SUCCESS: analysis finished! +Analyzing "samples/sample-undefined/insert.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample-undefined/with_tables/alphacheck_stderr.txt b/samples/sample-undefined/with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample-undefined/with_tables/alphacheck_stdout.txt b/samples/sample-undefined/with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..e174da5f --- /dev/null +++ b/samples/sample-undefined/with_tables/alphacheck_stdout.txt @@ -0,0 +1,8 @@ +Analyzing "samples/sample-undefined/create.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample-undefined/select.sql" +SUCCESS: analysis finished! +Analyzing "samples/sample-undefined/insert.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample/side_effect_first/alphacheck_stderr.txt b/samples/sample/side_effect_first/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample/side_effect_first/alphacheck_stdout.txt b/samples/sample/side_effect_first/alphacheck_stdout.txt new file mode 100644 index 00000000..963b751f --- /dev/null +++ b/samples/sample/side_effect_first/alphacheck_stdout.txt @@ -0,0 +1,28 @@ +Analyzing "samples/sample/create_datawarehouse3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_datawarehouse2.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_interim2.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_datawarehouse1.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_interim3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_interim1.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_mart.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/test_mart3.sql" +SUCCESS: analysis finished! +Analyzing "samples/sample/test_mart2.sql" +SUCCESS: analysis finished! +Analyzing "samples/sample/test_mart1.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample/side_effect_first_with_tables/alphacheck_stderr.txt b/samples/sample/side_effect_first_with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample/side_effect_first_with_tables/alphacheck_stdout.txt b/samples/sample/side_effect_first_with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..963b751f --- /dev/null +++ b/samples/sample/side_effect_first_with_tables/alphacheck_stdout.txt @@ -0,0 +1,28 @@ +Analyzing "samples/sample/create_datawarehouse3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_datawarehouse2.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_interim2.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_datawarehouse1.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_interim3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_interim1.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_mart.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/test_mart3.sql" +SUCCESS: analysis finished! +Analyzing "samples/sample/test_mart2.sql" +SUCCESS: analysis finished! +Analyzing "samples/sample/test_mart1.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample/with_all/alphacheck_stderr.txt b/samples/sample/with_all/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample/with_all/alphacheck_stdout.txt b/samples/sample/with_all/alphacheck_stdout.txt new file mode 100644 index 00000000..963b751f --- /dev/null +++ b/samples/sample/with_all/alphacheck_stdout.txt @@ -0,0 +1,28 @@ +Analyzing "samples/sample/create_datawarehouse3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_datawarehouse2.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_interim2.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_datawarehouse1.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_interim3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_interim1.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_mart.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/test_mart3.sql" +SUCCESS: analysis finished! +Analyzing "samples/sample/test_mart2.sql" +SUCCESS: analysis finished! +Analyzing "samples/sample/test_mart1.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample/with_functions/alphacheck_stderr.txt b/samples/sample/with_functions/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample/with_functions/alphacheck_stdout.txt b/samples/sample/with_functions/alphacheck_stdout.txt new file mode 100644 index 00000000..963b751f --- /dev/null +++ b/samples/sample/with_functions/alphacheck_stdout.txt @@ -0,0 +1,28 @@ +Analyzing "samples/sample/create_datawarehouse3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_datawarehouse2.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_interim2.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_datawarehouse1.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_interim3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_interim1.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_mart.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/test_mart3.sql" +SUCCESS: analysis finished! +Analyzing "samples/sample/test_mart2.sql" +SUCCESS: analysis finished! +Analyzing "samples/sample/test_mart1.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/sample/with_tables/alphacheck_stderr.txt b/samples/sample/with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/sample/with_tables/alphacheck_stdout.txt b/samples/sample/with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..963b751f --- /dev/null +++ b/samples/sample/with_tables/alphacheck_stdout.txt @@ -0,0 +1,28 @@ +Analyzing "samples/sample/create_datawarehouse3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_datawarehouse2.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_interim2.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_datawarehouse1.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_interim3.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_interim1.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/create_mart.sql" +DDL analyzed, adding table to catalog... +SUCCESS: analysis finished! +Analyzing "samples/sample/test_mart3.sql" +SUCCESS: analysis finished! +Analyzing "samples/sample/test_mart2.sql" +SUCCESS: analysis finished! +Analyzing "samples/sample/test_mart1.sql" +SUCCESS: analysis finished! +Successfully finished type check! diff --git a/samples/scripting/side_effect_first/alphacheck_stderr.txt b/samples/scripting/side_effect_first/alphacheck_stderr.txt new file mode 100644 index 00000000..ed83a147 --- /dev/null +++ b/samples/scripting/side_effect_first/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Procedure not found: create_datawarehouse3 [at samples/scripting/script.sql:12:8] diff --git a/samples/scripting/side_effect_first/alphacheck_stdout.txt b/samples/scripting/side_effect_first/alphacheck_stdout.txt new file mode 100644 index 00000000..43d4c61f --- /dev/null +++ b/samples/scripting/side_effect_first/alphacheck_stdout.txt @@ -0,0 +1,9 @@ +Analyzing "samples/scripting/script.sql" +DDL analyzed, adding table to catalog... +DDL analyzed, adding table to catalog... +catalog: + dataset.main + datawarehouse1 + datawarehouse2 + tablename1 + tablename2 diff --git a/samples/scripting/side_effect_first_with_tables/alphacheck_stderr.txt b/samples/scripting/side_effect_first_with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..ed83a147 --- /dev/null +++ b/samples/scripting/side_effect_first_with_tables/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Procedure not found: create_datawarehouse3 [at samples/scripting/script.sql:12:8] diff --git a/samples/scripting/side_effect_first_with_tables/alphacheck_stdout.txt b/samples/scripting/side_effect_first_with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..43d4c61f --- /dev/null +++ b/samples/scripting/side_effect_first_with_tables/alphacheck_stdout.txt @@ -0,0 +1,9 @@ +Analyzing "samples/scripting/script.sql" +DDL analyzed, adding table to catalog... +DDL analyzed, adding table to catalog... +catalog: + dataset.main + datawarehouse1 + datawarehouse2 + tablename1 + tablename2 diff --git a/samples/scripting/with_all/alphacheck_stderr.txt b/samples/scripting/with_all/alphacheck_stderr.txt new file mode 100644 index 00000000..ed83a147 --- /dev/null +++ b/samples/scripting/with_all/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Procedure not found: create_datawarehouse3 [at samples/scripting/script.sql:12:8] diff --git a/samples/scripting/with_all/alphacheck_stdout.txt b/samples/scripting/with_all/alphacheck_stdout.txt new file mode 100644 index 00000000..43d4c61f --- /dev/null +++ b/samples/scripting/with_all/alphacheck_stdout.txt @@ -0,0 +1,9 @@ +Analyzing "samples/scripting/script.sql" +DDL analyzed, adding table to catalog... +DDL analyzed, adding table to catalog... +catalog: + dataset.main + datawarehouse1 + datawarehouse2 + tablename1 + tablename2 diff --git a/samples/scripting/with_functions/alphacheck_stderr.txt b/samples/scripting/with_functions/alphacheck_stderr.txt new file mode 100644 index 00000000..ed83a147 --- /dev/null +++ b/samples/scripting/with_functions/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Procedure not found: create_datawarehouse3 [at samples/scripting/script.sql:12:8] diff --git a/samples/scripting/with_functions/alphacheck_stdout.txt b/samples/scripting/with_functions/alphacheck_stdout.txt new file mode 100644 index 00000000..43d4c61f --- /dev/null +++ b/samples/scripting/with_functions/alphacheck_stdout.txt @@ -0,0 +1,9 @@ +Analyzing "samples/scripting/script.sql" +DDL analyzed, adding table to catalog... +DDL analyzed, adding table to catalog... +catalog: + dataset.main + datawarehouse1 + datawarehouse2 + tablename1 + tablename2 diff --git a/samples/scripting/with_tables/alphacheck_stderr.txt b/samples/scripting/with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..ed83a147 --- /dev/null +++ b/samples/scripting/with_tables/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Procedure not found: create_datawarehouse3 [at samples/scripting/script.sql:12:8] diff --git a/samples/scripting/with_tables/alphacheck_stdout.txt b/samples/scripting/with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..43d4c61f --- /dev/null +++ b/samples/scripting/with_tables/alphacheck_stdout.txt @@ -0,0 +1,9 @@ +Analyzing "samples/scripting/script.sql" +DDL analyzed, adding table to catalog... +DDL analyzed, adding table to catalog... +catalog: + dataset.main + datawarehouse1 + datawarehouse2 + tablename1 + tablename2