-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix broken categorization in transform_dbt_test_results.py
and remove dbt_utils
dependency
#474
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. question (non-blocking): If we end up needing other macros from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the right move is to vendor the macro, unless two specific conditions arise: A macro that is 1) particularly complex and 2) does not require the |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -8,7 +8,7 @@ | |||||||||||||||||||||||||||
additional_select_columns=[] | ||||||||||||||||||||||||||||
) %} | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
{%- set previous_column_name = "previous_" ~ dbt_utils.slugify(column_name) -%} | ||||||||||||||||||||||||||||
{%- set previous_column_name = "previous_" ~ slugify(column_name) -%} | ||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Our version of slugify is basically identical to the For reference, here's our version of the macro: data-architecture/dbt/macros/slugify.sql Lines 1 to 13 in 6efd15a
And here's the dbt utils version: {% macro slugify(string) %}
{#- Lower case the string -#}
{% set string = string | lower %}
{#- Replace spaces and dashes with underscores -#}
{% set string = modules.re.sub('[ -]+', '_', string) %}
{#- Only take letters, numbers, and underscores -#}
{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}
{#- Prepends "_" if string begins with a number -#}
{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}
{{ return(string) }}
{% endmacro %} |
||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
{%- if group_by_columns | length() > 0 -%} | ||||||||||||||||||||||||||||
{%- set select_gb_cols = group_by_columns | join(",") -%} | ||||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This list remains the same, I've just removed the
macro.<project_name>.*
prefix from each key and deduplicated the keys that previously had adbt_utils
version.