Skip to content
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 deprecated table argument from unpivot() #670

Closed
joellabes opened this issue Sep 15, 2022 · 2 comments · Fixed by #671
Closed

Remove deprecated table argument from unpivot() #670

joellabes opened this issue Sep 15, 2022 · 2 comments · Fixed by #671
Labels
1.0 Changes to include in version 1.0 (especially breaking changes) enhancement New feature or request good first issue

Comments

@joellabes
Copy link
Contributor

Describe the feature

We swapped from table to relation in a long-past version of dbt utils, and promised it would be deprecated one day.

{% if table %}
{%- set error_message = '
Warning: the `unpivot` macro no longer accepts a `table` parameter. \
This parameter will be deprecated in a future release of dbt-utils. Use the `relation` parameter instead. \
The {}.{} model triggered this warning. \
'.format(model.package_name, model.name) -%}
{%- do exceptions.warn(error_message) -%}
{% endif %}

That day has come.

This looks like:

  • Removing the table parameter
  • Removing the checking for table, as well as checking for both table and relation.
  • Remove the test_unpivot_original_api test
  • The remaining tests should continue to pass

Who will this benefit?

Future users of this macro, who won't have conflicting and confusing documentation. Lovers of clean code

Are you interested in contributing this feature?

Leaving it for a community member who wants to get into OSS contributions!

@joellabes joellabes added enhancement New feature or request good first issue 1.0 Changes to include in version 1.0 (especially breaking changes) labels Sep 15, 2022
miles170 added a commit to miles170/dbt-utils that referenced this issue Sep 15, 2022
miles170 added a commit to miles170/dbt-utils that referenced this issue Sep 15, 2022
miles170 added a commit to miles170/dbt-utils that referenced this issue Sep 15, 2022
miles170 added a commit to miles170/dbt-utils that referenced this issue Sep 15, 2022
@ethanotran
Copy link

Can I work on this one? Looking for my first open source contribution.

@joellabes
Copy link
Contributor Author

Can I work on this one? Looking for my first open source contribution.

@ethanotran it looks like Miles might have already done some work on this one I'm sorry! I'm on mobile so I can't see exactly, or whether there's any others from the crop I opened earlier this week that are unclaimed. If you do find one, feel free to assign it to yourself 👍

@joellabes joellabes changed the title Remove deprecated table argument from pivot() Remove deprecated table argument from unpivot() Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.0 Changes to include in version 1.0 (especially breaking changes) enhancement New feature or request good first issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants