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

use patch_microbatch_end_time #307

Merged
merged 4 commits into from
Sep 16, 2024

Conversation

MichelleArk
Copy link
Contributor

@MichelleArk MichelleArk commented Sep 13, 2024

resolves #N/A
docs dbt-labs/docs.getdbt.com/#

Problem

Usage of freezegun was not precise enough to just microbatch and caused issues in testing downstream in dbt-snowflake.

Solution

Use new utility to patch just microbatch end time introduced in dbt-labs/dbt-core#10713.

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have run this code in development, and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc.) or this PR has already received feedback and approval from Product or DX

Confirmed this fixes things in dbt-snowflake: https://github.com/dbt-labs/dbt-snowflake/actions/runs/10857121125/job/30133020922?pr=1179

Will need a patch release of dbt-test-adapters to get this out!

@cla-bot cla-bot bot added the cla:yes The PR author has signed the CLA label Sep 13, 2024
Copy link
Contributor

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

1 similar comment
Copy link
Contributor

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

QMalcolm
QMalcolm previously approved these changes Sep 14, 2024
@MichelleArk MichelleArk force-pushed the use-patch-microbatch-time-method branch from 9e72836 to 993f704 Compare September 14, 2024 01:32
@MichelleArk MichelleArk added the Skip Changelog Skip changelog verification in a PR label Sep 14, 2024
@MichelleArk MichelleArk marked this pull request as ready for review September 14, 2024 01:41
@MichelleArk MichelleArk requested a review from a team as a code owner September 14, 2024 01:41
QMalcolm
QMalcolm previously approved these changes Sep 14, 2024
Copy link
Contributor

@QMalcolm QMalcolm left a comment

Choose a reason for hiding this comment

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

Re-approving 🙂

@MichelleArk MichelleArk enabled auto-merge (squash) September 14, 2024 01:44
mikealfare
mikealfare previously approved these changes Sep 16, 2024
Copy link
Contributor

@mikealfare mikealfare left a comment

Choose a reason for hiding this comment

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

One suggestion, but non-blocking.

…nimal

Co-authored-by: Mike Alfare <13974384+mikealfare@users.noreply.github.com>
@QMalcolm QMalcolm dismissed stale reviews from mikealfare and themself via f479635 September 16, 2024 15:51
mikealfare
mikealfare previously approved these changes Sep 16, 2024
@QMalcolm
Copy link
Contributor

Closing this PR. We are first going to move the utility from dbt-core to dbt-common, then do this work

@colin-rogers-dbt colin-rogers-dbt enabled auto-merge (squash) September 16, 2024 21:23
@colin-rogers-dbt colin-rogers-dbt merged commit 2ba660f into main Sep 16, 2024
10 checks passed
@colin-rogers-dbt colin-rogers-dbt deleted the use-patch-microbatch-time-method branch September 16, 2024 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes The PR author has signed the CLA Skip Changelog Skip changelog verification in a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants