dbt-labs / dbt-labs/dbt-adapters

[Feature] Enable custom incremental strategies for dbt-spark

Open
#833 0 comments 0 reactions 0 assignees View on GitHub
pkg:dbt-spark type:enhancement
Dominant language
Python
Stars
233
Forks
362
Avg merge
3d 22h
Merged PRs (30d)
9

Description

### Is this your first time submitting a feature request?

- [x] I have read the [expectations for open source contributors](https://docs.getdbt.com/docs/contributing/oss-expectations)
- [x] I have searched the existing issues, and I could not find an existing issue for this feature
- [x] I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

### Describe the feature

We currently validate that the user's incremental strategy is a built-in for `dbt-spark`. In other adapters we allow users to provide their own strategy. Additionally, this makes it more difficult for downstream Spark adapters (e.g. dbt-databricks) to implement custom strategies. They will need to override components to avoid the hard check, which then blocks them from taking future updates of those components.

### Describe alternatives you've considered

The short term workaround is to overwrite the validation macro.

### Who will this benefit?

Users of `dbt-spark` and `dbt-databricks` (maybe more?) who want to use custom incremental strategies as well as maintainers of these adapters who would like to offer this feature.

### Are you interested in contributing this feature?

_No response_

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.