-
Notifications
You must be signed in to change notification settings - Fork 501
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
Remove some deprecated macros #268
Conversation
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.
+0 −33
Nice! I agree, let's hold off on surrogate_key
+ identifier
82cf0cb
to
7aa8038
Compare
@@ -10,7 +10,6 @@ | |||
{% endif -%} | |||
|
|||
{%- set column_override = column_override if column_override is not none else {} -%} | |||
{%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%} |
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.
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.
I think this is because of the python convention to set default arguments to none
, always, out of fear of mutable default arguments.
It's less of an issue with strings and dicts than with arrays, so I think it's probably fine to make this change.
This is a:
main
)To do before merge
dev/0.6.0
once Feature: use adapter.dispatch #267 is mergedDescription & motivation
I removed
union_tables
andget_tables_by_prefix
, which we deprecated >6 months ago as part of v0.2.4 in Dec 2019I also removed
get_tables_by_pattern
— this was introduced in v0.5.0 and is functionally equivalent toget_tables_by_pattern_sql
. Given few people would be using this macro (as it's a helper macro), we are going to go straight to removing it rather than deprecating it first.We could also consider deprecating:
surrogate_key
macro: deprecated in v0.3.0 / April 2020identifier
: deprecation warning added in v0.4.0 / April 2020 (deprecated before then but not marked as such)Personally, I think we should wait until the next version of utils to deprecate those
Checklist