dbt-databricks icon indicating copy to clipboard operation
dbt-databricks copied to clipboard

fix: rename dead `skip_non_matched_step` config to `skip_not_matched_step`

Open sd-db opened this issue 5 months ago • 1 comments

Description

DatabricksConfig declared the merge config field as skip_non_matched_step ("non"), but the incremental merge strategy macro has always read skip_not_matched_step ("not") (dbt/include/databricks/macros/materializations/incremental/strategies.sql). The declared field was therefore dead, and the key the macro actually consumes was missing from the adapter's config schema.

This renames the field to skip_not_matched_step so the adapter advertises the exact key the macro reads. The macro already read the correct key, so merge behavior is unchanged — this only fixes which key the adapter recognizes as valid (e.g. for dbt-core's jsonschema config validation). No backward-compat shim is needed: the typo'd key never had any effect, so nothing depends on it.

Testing:

  • New unit test tests/unit/test_adapter.py::test_databricks_config_declares_skip_not_matched_step (red before the rename, green after).
  • Existing TestSkipNotMatched / TestSkipMatched functional tests pass against a SQL warehouse, confirming merge behavior is unchanged.

Checklist

  • [x] I have run this code in development and it appears to resolve the stated issue
  • [x] This PR includes tests, or tests are not required/relevant for this PR
  • [x] I have updated the CHANGELOG.md and added information about my change to the topmost (TBD) section.

sd-db avatar Jun 28 '26 18:06 sd-db

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  dbt/adapters/databricks
  impl.py
Project Total  

This report was generated by python-coverage-comment-action

github-actions avatar Jun 28 '26 18:06 github-actions