Skip to content

Commit

Permalink
Keep going
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcohen6 committed Aug 3, 2022
1 parent c1e8d3d commit 8f01640
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
27 changes: 23 additions & 4 deletions integration_tests/dbt_utils/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ seeds:
models:
dbt_utils_integration_tests:
+file_format: delta

# these were added after the cross-db migration
# see https://github.com/dbt-labs/dbt-core/issues/5520
# the compatibility will be properly added in dbt-spark
# just disable them for now
cross_db_utils:
test_array_append:
+enabled: false
test_array_concat:
+enabled: false
test_array_construct:
+enabled: false

sql:
# macro doesn't work for this integration test (schema pattern)
test_get_relations_by_pattern:
Expand All @@ -43,13 +56,19 @@ models:
test_pivot_apostrophe:
+enabled: false
generic_tests:
# integration test doesn't work
# default version of this integration test uses an explicit cast to 'datetime'
# which SparkSQL does not support
test_recency:
+enabled: false
cross_db_utils:
# integration test doesn't work
test_any_value:
+enabled: false
# integration test doesn't work
test_listagg:
+enabled: false

tests:
dbt_utils_integration_tests:
cross_db_utils:
# expect exactly two failures
# (both use "order by", which isn't supported in SparkSQL)
assert_equal_test_listagg_actual__expected:
error_if: ">2"
2 changes: 2 additions & 0 deletions integration_tests/dbt_utils/models/test_recency.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
select
{{ dbt_utils.date_trunc('day', dbt_utils.current_timestamp()) }} as today

0 comments on commit 8f01640

Please sign in to comment.