Skip to content

Commit

Permalink
Snapshots for other engines
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Dec 16, 2024
1 parent b939ff8 commit 81fc66d
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 1 deletion.
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
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
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ docstring:
Tests rendering of the SqlAddTimeExpr in a query.
sql_engine: Redshift
---
-- Test Approximate Discrete Percentile Expression
-- Test Add Time Expression
SELECT
DATEADD(month, (1 * 3), '2020-01-01') AS add_time
FROM foo.bar a
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
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

0 comments on commit 81fc66d

Please sign in to comment.