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

fix(relation_configs): bug #1130 when view_definition is empty

Open vergenzt opened this issue 10 months ago • 2 comments

Resolves #1130

Description

Avoids error string index out of range if view_definition is empty (e.g. if existing materialized view was created from a dlt pipeline).

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.

vergenzt avatar Jan 26 '26 19:01 vergenzt

I'm testing this for my use case now

vergenzt avatar Jan 26 '26 19:01 vergenzt

@vergenzt if you are still encountering this issue and want to continue on the PR would be happy to take a look. Would recommend adding a functional test that helps protect against regressions.

sd-db avatar Mar 10 '26 11:03 sd-db