-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/performance enhancement (#127)
* feature/performance-enhancement
- Loading branch information
1 parent
ec9fec4
commit 251785a
Showing
27 changed files
with
329 additions
and
369 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
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
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 jira_is_databricks_sql_warehouse() %} | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% macro jira_lookback(from_date, datepart, interval, safety_date='2010-01-01') %} | ||
|
||
{{ adapter.dispatch('jira_lookback', 'jira') (from_date, datepart, interval, safety_date='2010-01-01') }} | ||
|
||
{%- endmacro %} | ||
|
||
{% macro default__jira_lookback(from_date, datepart, interval, safety_date='2010-01-01') %} | ||
|
||
{% set sql_statement %} | ||
select coalesce({{ from_date }}, {{ "'" ~ safety_date ~ "'" }}) | ||
from {{ this }} | ||
{%- endset -%} | ||
|
||
{%- set result = dbt_utils.get_single_value(sql_statement) %} | ||
|
||
{{ dbt.dateadd(datepart=datepart, interval=-interval, from_date_or_timestamp="cast('" ~ result ~ "' as date)") }} | ||
|
||
{% endmacro %} |
57 changes: 0 additions & 57 deletions
57
models/intermediate/field_history/int_jira__agg_multiselect_history.sql
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.