-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update snapshots for other SQL engines
- Loading branch information
1 parent
94e03dd
commit 76b1c03
Showing
42 changed files
with
9,006 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
...napshots/test_engine_specific_rendering.py/SqlPlan/BigQuery/test_add_time_expr__plan0.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,10 @@ | ||
test_name: test_add_time_expr | ||
test_filename: test_engine_specific_rendering.py | ||
docstring: | ||
Tests rendering of the SqlAddTimeExpr in a query. | ||
sql_engine: BigQuery | ||
--- | ||
-- Test Add Time Expression | ||
SELECT | ||
DATE_ADD(CAST('2020-01-01' AS DATETIME), INTERVAL SqlExpressionRenderResult(sql='1', bind_parameter_set=SqlBindParameterSet(param_items=())) quarter) AS add_time | ||
FROM foo.bar a |
10 changes: 10 additions & 0 deletions
10
...pshots/test_engine_specific_rendering.py/SqlPlan/Databricks/test_add_time_expr__plan0.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,10 @@ | ||
test_name: test_add_time_expr | ||
test_filename: test_engine_specific_rendering.py | ||
docstring: | ||
Tests rendering of the SqlAddTimeExpr in a query. | ||
sql_engine: Databricks | ||
--- | ||
-- Test Add Time Expression | ||
SELECT | ||
DATEADD(month, (1 * 3), '2020-01-01') AS add_time | ||
FROM foo.bar a |
10 changes: 10 additions & 0 deletions
10
...napshots/test_engine_specific_rendering.py/SqlPlan/Postgres/test_add_time_expr__plan0.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,10 @@ | ||
test_name: test_add_time_expr | ||
test_filename: test_engine_specific_rendering.py | ||
docstring: | ||
Tests rendering of the SqlAddTimeExpr in a query. | ||
sql_engine: Postgres | ||
--- | ||
-- Test Add Time Expression | ||
SELECT | ||
'2020-01-01' + MAKE_INTERVAL(months => (1 * 3)) AS add_time | ||
FROM foo.bar a |
10 changes: 10 additions & 0 deletions
10
...napshots/test_engine_specific_rendering.py/SqlPlan/Redshift/test_add_time_expr__plan0.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,10 @@ | ||
test_name: test_add_time_expr | ||
test_filename: test_engine_specific_rendering.py | ||
docstring: | ||
Tests rendering of the SqlAddTimeExpr in a query. | ||
sql_engine: Redshift | ||
--- | ||
-- Test Add Time Expression | ||
SELECT | ||
DATEADD(month, (1 * 3), '2020-01-01') AS add_time | ||
FROM foo.bar a |
10 changes: 10 additions & 0 deletions
10
...apshots/test_engine_specific_rendering.py/SqlPlan/Snowflake/test_add_time_expr__plan0.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,10 @@ | ||
test_name: test_add_time_expr | ||
test_filename: test_engine_specific_rendering.py | ||
docstring: | ||
Tests rendering of the SqlAddTimeExpr in a query. | ||
sql_engine: Snowflake | ||
--- | ||
-- Test Add Time Expression | ||
SELECT | ||
DATEADD(month, (1 * 3), '2020-01-01') AS add_time | ||
FROM foo.bar a |
10 changes: 10 additions & 0 deletions
10
...w/snapshots/test_engine_specific_rendering.py/SqlPlan/Trino/test_add_time_expr__plan0.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,10 @@ | ||
test_name: test_add_time_expr | ||
test_filename: test_engine_specific_rendering.py | ||
docstring: | ||
Tests rendering of the SqlAddTimeExpr in a query. | ||
sql_engine: Trino | ||
--- | ||
-- Test Add Time Expression | ||
SELECT | ||
DATE_ADD('month', (1 * 3), '2020-01-01') AS add_time | ||
FROM foo.bar a |
12 changes: 12 additions & 0 deletions
12
...w/snapshots/test_query_output.py/str/BigQuery/test_derived_metric_alias__query_output.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,12 @@ | ||
test_name: test_derived_metric_alias | ||
test_filename: test_query_output.py | ||
--- | ||
bookings_alias metric_time__day | ||
---------------- ------------------- | ||
132.78 2020-01-02T00:00:00 | ||
284.93 2019-12-18T00:00:00 | ||
360.5 2019-12-19T00:00:00 | ||
136.16 2020-01-01T00:00:00 | ||
47.56 2019-12-01T00:00:00 | ||
0 2020-01-03T00:00:00 | ||
0 2019-12-20T00:00:00 |
12 changes: 12 additions & 0 deletions
12
...etricflow/snapshots/test_query_output.py/str/BigQuery/test_metric_alias__query_output.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,12 @@ | ||
test_name: test_metric_alias | ||
test_filename: test_query_output.py | ||
--- | ||
bookings_alias metric_time__day | ||
---------------- ------------------- | ||
9 2020-01-02T00:00:00 | ||
10 2019-12-18T00:00:00 | ||
18 2019-12-19T00:00:00 | ||
5 2020-01-01T00:00:00 | ||
1 2019-12-01T00:00:00 | ||
1 2020-01-03T00:00:00 | ||
2 2019-12-20T00:00:00 |
12 changes: 12 additions & 0 deletions
12
...snapshots/test_query_output.py/str/Databricks/test_derived_metric_alias__query_output.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,12 @@ | ||
test_name: test_derived_metric_alias | ||
test_filename: test_query_output.py | ||
--- | ||
bookings_alias metric_time__day | ||
---------------- ------------------- | ||
132.78 2020-01-02T00:00:00 | ||
360.5 2019-12-19T00:00:00 | ||
136.16 2020-01-01T00:00:00 | ||
0 2020-01-03T00:00:00 | ||
284.93 2019-12-18T00:00:00 | ||
0 2019-12-20T00:00:00 | ||
47.56 2019-12-01T00:00:00 |
12 changes: 12 additions & 0 deletions
12
...ricflow/snapshots/test_query_output.py/str/Databricks/test_metric_alias__query_output.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,12 @@ | ||
test_name: test_metric_alias | ||
test_filename: test_query_output.py | ||
--- | ||
bookings_alias metric_time__day | ||
---------------- ------------------- | ||
9 2020-01-02T00:00:00 | ||
18 2019-12-19T00:00:00 | ||
5 2020-01-01T00:00:00 | ||
1 2020-01-03T00:00:00 | ||
10 2019-12-18T00:00:00 | ||
2 2019-12-20T00:00:00 | ||
1 2019-12-01T00:00:00 |
12 changes: 12 additions & 0 deletions
12
...w/snapshots/test_query_output.py/str/Postgres/test_derived_metric_alias__query_output.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,12 @@ | ||
test_name: test_derived_metric_alias | ||
test_filename: test_query_output.py | ||
--- | ||
bookings_alias metric_time__day | ||
---------------- ------------------- | ||
132.78 2020-01-02T00:00:00 | ||
0 2020-01-03T00:00:00 | ||
360.5 2019-12-19T00:00:00 | ||
0 2019-12-20T00:00:00 | ||
284.93 2019-12-18T00:00:00 | ||
47.56 2019-12-01T00:00:00 | ||
136.16 2020-01-01T00:00:00 |
12 changes: 12 additions & 0 deletions
12
...etricflow/snapshots/test_query_output.py/str/Postgres/test_metric_alias__query_output.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,12 @@ | ||
test_name: test_metric_alias | ||
test_filename: test_query_output.py | ||
--- | ||
bookings_alias metric_time__day | ||
---------------- ------------------- | ||
9 2020-01-02T00:00:00 | ||
1 2020-01-03T00:00:00 | ||
18 2019-12-19T00:00:00 | ||
2 2019-12-20T00:00:00 | ||
10 2019-12-18T00:00:00 | ||
1 2019-12-01T00:00:00 | ||
5 2020-01-01T00:00:00 |
12 changes: 12 additions & 0 deletions
12
...w/snapshots/test_query_output.py/str/Redshift/test_derived_metric_alias__query_output.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,12 @@ | ||
test_name: test_derived_metric_alias | ||
test_filename: test_query_output.py | ||
--- | ||
bookings_alias metric_time__day | ||
---------------- ------------------- | ||
0 2019-12-20T00:00:00 | ||
136.16 2020-01-01T00:00:00 | ||
132.78 2020-01-02T00:00:00 | ||
47.56 2019-12-01T00:00:00 | ||
284.93 2019-12-18T00:00:00 | ||
360.5 2019-12-19T00:00:00 | ||
0 2020-01-03T00:00:00 |
12 changes: 12 additions & 0 deletions
12
...etricflow/snapshots/test_query_output.py/str/Redshift/test_metric_alias__query_output.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,12 @@ | ||
test_name: test_metric_alias | ||
test_filename: test_query_output.py | ||
--- | ||
bookings_alias metric_time__day | ||
---------------- ------------------- | ||
1 2019-12-01T00:00:00 | ||
10 2019-12-18T00:00:00 | ||
18 2019-12-19T00:00:00 | ||
1 2020-01-03T00:00:00 | ||
2 2019-12-20T00:00:00 | ||
5 2020-01-01T00:00:00 | ||
9 2020-01-02T00:00:00 |
12 changes: 12 additions & 0 deletions
12
.../snapshots/test_query_output.py/str/Snowflake/test_derived_metric_alias__query_output.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,12 @@ | ||
test_name: test_derived_metric_alias | ||
test_filename: test_query_output.py | ||
--- | ||
BOOKINGS_ALIAS METRIC_TIME__DAY | ||
---------------- ------------------- | ||
47.56 2019-12-01T00:00:00 | ||
284.93 2019-12-18T00:00:00 | ||
360.5 2019-12-19T00:00:00 | ||
0 2019-12-20T00:00:00 | ||
136.16 2020-01-01T00:00:00 | ||
132.78 2020-01-02T00:00:00 | ||
0 2020-01-03T00:00:00 |
12 changes: 12 additions & 0 deletions
12
...tricflow/snapshots/test_query_output.py/str/Snowflake/test_metric_alias__query_output.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,12 @@ | ||
test_name: test_metric_alias | ||
test_filename: test_query_output.py | ||
--- | ||
BOOKINGS_ALIAS METRIC_TIME__DAY | ||
---------------- ------------------- | ||
1 2019-12-01T00:00:00 | ||
10 2019-12-18T00:00:00 | ||
18 2019-12-19T00:00:00 | ||
2 2019-12-20T00:00:00 | ||
5 2020-01-01T00:00:00 | ||
1 2020-01-03T00:00:00 | ||
9 2020-01-02T00:00:00 |
12 changes: 12 additions & 0 deletions
12
...flow/snapshots/test_query_output.py/str/Trino/test_derived_metric_alias__query_output.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,12 @@ | ||
test_name: test_derived_metric_alias | ||
test_filename: test_query_output.py | ||
--- | ||
bookings_alias metric_time__day | ||
---------------- ------------------- | ||
360.5 2019-12-19T00:00:00 | ||
0 2019-12-20T00:00:00 | ||
136.16 2020-01-01T00:00:00 | ||
284.93 2019-12-18T00:00:00 | ||
0 2020-01-03T00:00:00 | ||
132.78 2020-01-02T00:00:00 | ||
47.56 2019-12-01T00:00:00 |
12 changes: 12 additions & 0 deletions
12
...s_metricflow/snapshots/test_query_output.py/str/Trino/test_metric_alias__query_output.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,12 @@ | ||
test_name: test_metric_alias | ||
test_filename: test_query_output.py | ||
--- | ||
bookings_alias metric_time__day | ||
---------------- ------------------- | ||
18 2019-12-19T00:00:00 | ||
2 2019-12-20T00:00:00 | ||
5 2020-01-01T00:00:00 | ||
1 2019-12-01T00:00:00 | ||
9 2020-01-02T00:00:00 | ||
10 2019-12-18T00:00:00 | ||
1 2020-01-03T00:00:00 |
Oops, something went wrong.