-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from fivetran/MagicBot/package-extract-url-par…
…ameters Extract URL Parameter Macro Update
- Loading branch information
Showing
12 changed files
with
69 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: 'auto release' | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- main | ||
|
||
jobs: | ||
call-workflow-passing-data: | ||
if: github.event.pull_request.merged | ||
uses: fivetran/dbt_package_automations/.github/workflows/auto-release.yml@main | ||
secrets: inherit |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
|
||
env/ | ||
target/ | ||
dbt_modules/ | ||
logs/ | ||
.DS_Store | ||
dbt_packages/ | ||
dbt_packages/ | ||
package-lock.yml |
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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
dbt-snowflake>=1.3.0,<2.0.0 | ||
dbt-bigquery>=1.3.0,<2.0.0 | ||
dbt-redshift>=1.3.0,<1.5.0 | ||
dbt-redshift>=1.3.0,<2.0.0 | ||
dbt-postgres>=1.3.0,<2.0.0 | ||
dbt-spark>=1.3.0,<2.0.0 | ||
dbt-spark[PyHive]>=1.3.0,<2.0.0 | ||
dbt-databricks>=1.3.0,<2.0.0 | ||
dbt-databricks>=1.6.0,<2.0.0 |
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,20 @@ | ||
{% macro pinterest_ads_extract_url_parameter(field, url_parameter) -%} | ||
|
||
{{ return(adapter.dispatch('pinterest_ads_extract_url_parameter', 'pinterest_source') (field, url_parameter)) }} | ||
|
||
{% endmacro %} | ||
|
||
|
||
{% macro default__pinterest_ads_extract_url_parameter(field, url_parameter) -%} | ||
|
||
{{ dbt_utils.get_url_parameter(field, url_parameter) }} | ||
|
||
{%- endmacro %} | ||
|
||
|
||
{% macro spark__pinterest_ads_extract_url_parameter(field, url_parameter) -%} | ||
|
||
{%- set formatted_url_parameter = "'" + url_parameter + "=([^&]+)'" -%} | ||
nullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '') | ||
|
||
{%- 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