Skip to content

Conversation

@mi-volodin
Copy link
Contributor

Resolves #949

Description

This PR extends the capability of Merge strategy configuration and allow to completely override actions block with an explicit statement.

E.g. it allows to define multiple actions with multiple conditions and tune this part at developer's convenience.

when matched and ... then update
...
when matched and ... then delete
when not matched and ... then insert
...

Checklist

  • 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
  • I have updated the CHANGELOG.md and added information about my change to the "dbt-databricks next" section.

@mi-volodin mi-volodin marked this pull request as ready for review May 12, 2025 18:33
@mi-volodin
Copy link
Contributor Author

There are some extra actions on docs + changelog, but the code is ready for review.

@benc-db could you please trigger the tests on your side? My functional tests with snapshots traditionally doesn't work.

Copy link
Collaborator

@benc-db benc-db left a comment

Choose a reason for hiding this comment

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

Nice. I'll need to sleep on the name of the config, but the approach and test looks good.

@mi-volodin
Copy link
Contributor Author

Yep, of course, I'll write a docs entry meanwhile.

@mi-volodin
Copy link
Contributor Author

For transparency - it was decided to pause this PR activities until the principal decision would be made to introduce that functionality in that form.

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.

Support for Multiple Actions in MERGE and Column-Specific Updates

2 participants