-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Incompatibility of Bitwise OR Dictionary Merge for Python < 3.9 #483
Comments
@mrkre good catch, as we have to support python 3.8, for now, we might need to do what you suggested. Any reason why you are still on Python 3.8? |
Was running dagster + dbt + dbt-athena, and dagster is on 3.8. However, that can be upgraded so it's a non-issue for me. Just caught me by surprise as my pipelines broke in production. |
Thanks for the context @mrkre , feel free to open a PR with your proposed changes. |
this issue should be covered by #487 because @svdimchenko refactored the implementation. |
Yes, #487 should fix the issue. |
Line 165 in
dbt/adapters/athena/impl.py
employs the bitwise OR (|) operator for dictionary merging:This syntax is supported in Python 3.9 and above, but leads to a TypeError in Python versions less than 3.9:
TypeError: unsupported operand type(s) for |: 'dict' and 'dict'
.Perhaps a version agnostic dictionary merge approach can be taken?
The text was updated successfully, but these errors were encountered: