-
Notifications
You must be signed in to change notification settings - Fork 174
Fix: escape and truncate default query tag values #1273
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
base: main
Are you sure you want to change the base?
Conversation
dbt/adapters/databricks/utils.py
Outdated
| escaped_value = QueryTagsUtils.escape_tag_value(key, value, "Default tags") | ||
|
|
||
| if len(escaped_value) > 128: | ||
| logger.warning( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we want to emit a warning, because this is not something the user can really take action on. Maybe just debug?
benc-db
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve with minor comment.
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||
Resolves #
Description
Fix to ensure that default (i.e. auto) query tag values are not invalid
Tested using a model with name
accepted_values_backhaulcontractschedule_site_category_3__Non_Served_Sites__New_Sites__Served_Sites__Non_HS_Sites__Served_Site__CHARACTERS_BEYOND_128Checklist
CHANGELOG.mdand added information about my change to the "dbt-databricks next" section.