Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to render for safest relation str substitution #903

Merged
merged 2 commits into from
Jan 15, 2025
Merged

Conversation

benc-db
Copy link
Collaborator

@benc-db benc-db commented Jan 14, 2025

Description

We have historically relied on {{ relation }} to substitute the 3-layer relation name into templates. {{ relation.render() }} is preferred because it correctly backticks, and I believe might be replaced at run-time when users ask for the --empty flag, with a limit 0 version.

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.

@benc-db benc-db merged commit 3fb54dc into main Jan 15, 2025
6 checks passed
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.

1 participant