-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature/databricks-sql-warehouse-compatibility (#121)
* feature/databricks-sql-warehouse-compatibility * run databricks sql * changelog pr ref and schema update * changes to incremental startegy selection * databricks different schemas * sql warehouse specific test runs * adjustment for databricks sql and all other destinations * unique schema name to ensure drop wont conflict * changelog reword * docs regen * validations and docs regen * variable adjustment * change cleanup * changelog update * update readme & changelog * Update models/fivetran_platform__audit_table.sql Co-authored-by: fivetran-catfritz <[email protected]> * Update README.md * docs regen after review * spark removal from macro * Apply suggestions from code review Jamie review notes Co-authored-by: Jamie Rodriguez <[email protected]> * changelog for fileformat addition --------- Co-authored-by: fivetran-catfritz <[email protected]> Co-authored-by: Jamie Rodriguez <[email protected]>
- Loading branch information
1 parent
1856dd4
commit acb8b61
Showing
13 changed files
with
90 additions
and
14 deletions.
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,15 @@ | ||
{% macro is_databricks_sql_warehouse(target) %} | ||
{% if target.type in ('databricks') %} | ||
{% set re = modules.re %} | ||
{% set path_match = target.http_path %} | ||
{% set regex_pattern = "/sql/.+/warehouses/" %} | ||
{% set match_result = re.search(regex_pattern, path_match) %} | ||
{% if match_result %} | ||
{{ return(True) }} | ||
{% else %} | ||
{{ return(False) }} | ||
{% endif %} | ||
{% else %} | ||
{{ return(False) }} | ||
{% endif %} | ||
{% endmacro %} |
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