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

Fully remove varargs usage in surrogate_key and safe_add #674

Merged
merged 2 commits into from
Sep 19, 2022

Conversation

miles170
Copy link
Contributor

@miles170 miles170 commented Sep 15, 2022

Closes #667.

This is a:

  • documentation update
  • bug fix with no breaking changes
  • new functionality
  • a breaking change

All pull requests from community contributors should target the main branch (default).

Description & motivation

Remove the varargs usage in surrogate_key, which now only takes a single list argument.

Checklist

  • This code is associated with an Issue which has been triaged and accepted for development.
  • I have verified that these changes work locally on the following warehouses (Note: it's okay if you do not have access to all warehouses, this helps us understand what has been covered)
    • BigQuery
    • Postgres
    • Redshift
    • Snowflake
  • I followed guidelines to ensure that my changes will work on "non-core" adapters by:
    • dispatching any new macro(s) so non-core adapters can also use them (e.g. the star() source)
    • using the limit_zero() macro in place of the literal string: limit 0
    • using dbt.type_* macros instead of explicit datatypes (e.g. dbt.type_timestamp() instead of TIMESTAMP
  • I have updated the README.md (if applicable)
  • I have added tests & descriptions to my models (and macros if applicable)
  • I have added an entry to CHANGELOG.md

@joellabes joellabes linked an issue Sep 19, 2022 that may be closed by this pull request
@joellabes joellabes changed the base branch from main to utils-v1 September 19, 2022 03:35
Copy link
Contributor

@joellabes joellabes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great @miles170! Two things:

Thanks!

macros/sql/surrogate_key.sql Outdated Show resolved Hide resolved
@miles170
Copy link
Contributor Author

This looks great @miles170! Two things:

Thanks!

I'd love to

@miles170 miles170 closed this Sep 19, 2022
@miles170 miles170 deleted the surrogate_key branch September 19, 2022 03:45
@miles170 miles170 restored the surrogate_key branch September 19, 2022 03:45
@miles170 miles170 reopened this Sep 19, 2022
@miles170 miles170 changed the title Fully remove varargs usage in surrogate_key Fully remove varargs usage in surrogate_key and safe_add Sep 19, 2022
Copy link
Contributor

@joellabes joellabes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌟 🌟 🌟 🌟 🌟

@joellabes joellabes merged commit a041bb7 into dbt-labs:utils-v1 Sep 19, 2022
@miles170 miles170 deleted the surrogate_key branch September 19, 2022 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fully remove varargs usage in surrogate_key and safe_add
2 participants