-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update package to use the package extract_url_parameter macro
- Loading branch information
1 parent
414e9ea
commit 4d7cd04
Showing
6 changed files
with
44 additions
and
7 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@feature/auto-releaser | ||
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
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,20 @@ | ||
{% macro google_ads_extract_url_parameter(field, url_parameter) -%} | ||
|
||
{{ adapter.dispatch('google_ads_extract_url_parameter', 'google_ads') (field, url_parameter) }} | ||
|
||
{% endmacro %} | ||
|
||
|
||
{% macro default__google_ads_extract_url_parameter(field, url_parameter) -%} | ||
|
||
{{ dbt_utils.get_url_parameter(field, url_parameter) }} | ||
|
||
{%- endmacro %} | ||
|
||
|
||
{% macro spark__google_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