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

Lift + shift for cross-db macros #120

Merged
merged 13 commits into from
Jun 17, 2022
Merged

Lift + shift for cross-db macros #120

merged 13 commits into from
Jun 17, 2022

Conversation

dbeatty10
Copy link
Contributor

@dbeatty10 dbeatty10 commented May 25, 2022

Follow-up to dbt-labs/dbt-core#5265. Continues #119.

To do before merge

  • Reset dev_requirements.txt back to original
  • Explicitly document the definition of dbt_utils.current_timestamp() before and after
  • Determine how to handle tests decorated with @pytest.mark.skip

@cla-bot cla-bot bot added the cla:yes label May 25, 2022
@dbeatty10 dbeatty10 marked this pull request as ready for review June 16, 2022 18:00
Comment on lines 3 to 5
git+https://github.com/dbt-labs/dbt-core.git@dbeatty/utils-lift-shift#egg=dbt-core&subdirectory=core
git+https://github.com/dbt-labs/dbt-core.git@dbeatty/utils-lift-shift#egg=dbt-tests-adapter&subdirectory=tests/adapter
git+https://github.com/dbt-labs/dbt-core.git@dbeatty/utils-lift-shift#egg=dbt-postgres&subdirectory=plugins/postgres
Copy link
Contributor

Choose a reason for hiding this comment

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

just need to remove the branch identifiers, rerun tests, then we should be hot to trot

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hot to trot 🔥

@dbeatty10 dbeatty10 merged commit 88d8a1d into main Jun 17, 2022
@dbeatty10 dbeatty10 deleted the dbeatty/utils-lift-shift branch June 17, 2022 13:30
abbywh pushed a commit to abbywh/dbt-redshift that referenced this pull request Oct 11, 2023
* Initialize lift + shift, dateadd + datediff

* Switch to alternative dev branches

* Lift and shift cross-database macros from dbt-utils

* Switch namespace from `dbt_utils` to `dbt`

* Remove conflicting definition of current_timestamp()

* Trim trailing whitespace

* Copy functional tests for cross-database macros from dbt-utils

* Remove references to other profiles

* Kick out the `current_timestamp` + `type_*` macros/tests

* Specify the namespace explicitly

* Duplicate default implementations into Redshift (to avoid inheritance issues)

* Remove branch identifiers

Co-authored-by: Jeremy Cohen <jeremy@dbtlabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants