dbt-databricks
dbt-databricks copied to clipboard
fix(relation_configs): bug #1130 when view_definition is empty
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.mdand added information about my change to the "dbt-databricks next" section.
I'm testing this for my use case now
@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.