-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SQL Endpoint specific integration tests. (#45)
Adds a new test profile and env variable DBT_DATABRICKS_ENDPOINT_HTTP_PATH ### Description Some features behave differently on sql endpoints vs spark clusters.
- Loading branch information
1 parent
a15031e
commit 19fd451
Showing
4 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
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
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
32 changes: 32 additions & 0 deletions
32
tests/specs/spark-databricks-sql-endpoint-connector.dbtspec
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,32 @@ | ||
target: | ||
type: databricks | ||
host: "{{ env_var('DBT_DATABRICKS_HOST_NAME') }}" | ||
http_path: "{{ env_var('DBT_DATABRICKS_ENDPOINT_HTTP_PATH') }}" | ||
token: "{{ env_var('DBT_DATABRICKS_TOKEN') }}" | ||
port: 443 | ||
schema: "analytics_{{ var('_dbt_random_suffix') }}" | ||
connect_retries: 5 | ||
connect_timeout: 60 | ||
projects: | ||
- overrides: snapshot_strategy_check_cols | ||
dbt_project_yml: &file_format_delta | ||
# we're going to UPDATE the seed tables as part of testing, so we must make them delta format | ||
seeds: | ||
dbt_test_project: | ||
file_format: delta | ||
snapshots: | ||
dbt_test_project: | ||
file_format: delta | ||
- overrides: snapshot_strategy_timestamp | ||
dbt_project_yml: *file_format_delta | ||
sequences: | ||
test_dbt_empty: empty | ||
# Skip for now as not all `SET` commands work on endpoints | ||
# test_dbt_base: base | ||
test_dbt_ephemeral: ephemeral | ||
test_dbt_incremental: incremental | ||
test_dbt_snapshot_strategy_timestamp: snapshot_strategy_timestamp | ||
test_dbt_snapshot_strategy_check_cols: snapshot_strategy_check_cols | ||
test_dbt_data_test: data_test | ||
test_dbt_ephemeral_data_tests: data_test_ephemeral_models | ||
test_dbt_schema_test: schema_test |
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