Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several changes to the
dbt
project, focusing on incremental strategies, snapshot handling, and testing. The most significant changes include the addition of a new incremental strategy, updates to snapshot macros, and the inclusion of new tests for the microbatch strategy.Incremental Strategies:
valid_incremental_strategies
method offabric_adapter.py
and corresponding SQL macros. [1] [2] [3]Snapshot Handling:
fabric__build_snapshot_table
andfabric__snapshot_staging_table
macros to use configurable column names, enhancing flexibility and readability. [1] [2]fabric__snapshot_merge_sql
macro to handle dynamic column names and added checks fordbt_valid_to_current
. [1] [2]snapshot.sql
to integrate the new snapshot staging table logic and ensure proper column handling. [1] [2]Testing:
test_incremental_microbatch.py
, including setup for input models and insertion of test data.Miscellaneous:
columns.sql
to ensure the correct SQL string is evaluated.