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

Replace environment variable with a project flag to gate micorbatch functionality #10799

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

MichelleArk
Copy link
Contributor

@MichelleArk MichelleArk commented Sep 30, 2024

Resolves #10798

Problem

We had gated the new microbatch feature behind an environment variable in the initial implementation of microbatch (#10594). However, for a better experience, we want people to be setting a project flag (AKA behavior flag).

Solution

Gate microbatch functionality behind a project flag (AKA behavior flag) instead of an environment variable.

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 or 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.
  • This PR includes type annotations for new and modified functions.

@cla-bot cla-bot bot added the cla:yes label Sep 30, 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.

Copy link

codecov bot commented Sep 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.15%. Comparing base (5e9f1b5) to head (1105e42).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10799      +/-   ##
==========================================
- Coverage   89.22%   89.15%   -0.08%     
==========================================
  Files         183      183              
  Lines       23456    23458       +2     
==========================================
- Hits        20929    20914      -15     
- Misses       2527     2544      +17     
Flag Coverage Δ
integration 86.40% <100.00%> (-0.15%) ⬇️
unit 62.09% <66.66%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Unit Tests 62.09% <66.66%> (+<0.01%) ⬆️
Integration Tests 86.40% <100.00%> (-0.15%) ⬇️

…with behavior flag changes

This is needed to get the tests to pass. This is only necessary until the changes in
dbt-adapters are merged. Said another way: we need to merge the changes to dbt-adapters
first, and then revert these dependency changes before merging these changes.
@QMalcolm QMalcolm marked this pull request as ready for review October 1, 2024 21:25
@QMalcolm QMalcolm requested a review from a team as a code owner October 1, 2024 21:25
@QMalcolm QMalcolm changed the title first pass: replace os env with project flag Replace environment variable with a project flag to gate micorbatch functionality Oct 1, 2024
Comment on lines -1 to +2
git+https://github.com/dbt-labs/dbt-adapters.git@main
git+https://github.com/dbt-labs/dbt-adapters.git@main#subdirectory=dbt-tests-adapter
git+https://github.com/dbt-labs/dbt-adapters.git@microbatch-behavior-flag
git+https://github.com/dbt-labs/dbt-adapters.git@microbatch-behavior-flag#subdirectory=dbt-tests-adapter
Copy link
Contributor

Choose a reason for hiding this comment

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

This is needed to get the tests to pass. This is only necessary until the changes in dbt-adapters are merged. Said another way: we need to merge the changes to dbt-adapters first, and then revert these dependency changes before merging this PR's changes.

@QMalcolm QMalcolm requested a review from a team October 1, 2024 22:00
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.

Replace DBT_EXPERIMENTAL_MICROBATCH env var with behaviour flag
2 participants