-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix MP_CONTEXT is not JSON serializable #6650
Conversation
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
1 similar comment
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
core/dbt/utils.py
Outdated
@@ -642,7 +642,10 @@ def args_to_dict(args): | |||
dict_args = {} | |||
# remove args keys that clutter up the dictionary | |||
for key in var_args: | |||
if key == "cls": | |||
if key.lower() in var_args and key == key.upper(): | |||
# skip all caped keys being introduced by Flags in dbt.cli.flags |
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.
typo/nit: 'caped' - perhaps you meant 'capped'?
Resolves #6509
This fixes the issue by adding logic to skip duplicated capped attributes introduced in Flags, also remove
mp_context
that is added.Test that failed before now passes
tests/adapter/dbt/tests/adapter/grants/test_snapshot_grants.py