Skip to content

Commit

Permalink
[SQUASH] Fix snowflake and bigquery
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzaadi committed Sep 18, 2023
1 parent e107f43 commit 3a84ed2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion integration_tests/tests/test_exposure_schema_validity.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,20 @@ def test_exposure_schema_validity_with_no_exposures(
def test_exposure_schema_validity_with_correct_columns_and_types(
test_id: str, dbt_project: DbtProject
):
explicit_target_for_bigquery = (
"other"
if dbt_project.dbt_runner.target in ["bigquery", "snowflake"]
else "string"
)
DBT_TEST_ARGS = {
"node": "models.exposures_test",
"columns": [{"name": "order_id", "dtype": "string"}],
"exposures": {
"ZOMG": {
"meta": {
"referenced_columns": [{"name": "order_id", "data_type": "string"}]
"referenced_columns": [
{"name": "order_id", "data_type": explicit_target_for_bigquery}
]
},
"url": "http://bla.com",
"name": "ZOMG",
Expand Down

0 comments on commit 3a84ed2

Please sign in to comment.