-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Pymongo version upgrade changes #5970
Pymongo version upgrade changes #5970
Conversation
@arikfr can this get some love please. The build is breaking in Athena test cases that has no connection to the files that have been changed. |
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.
Thank you for taking a stab at this. See comment.
56d9a8c
to
12c75e5
Compare
In theory, this PR looks like a better MongoDB update than PR #6114. So, I just rebased this onto our master branch so the CI tests will run. If the CI tests fully pass, this is the better one to merge. 😄 |
* commit 'ee601ec20676b0705e352bfb9b6726a0e53e3b12': Fix `FEATURE_POLICY` to initialize from `REDASH_FEATURE_POLICY` envvar, not `REDASH_REFERRER_POLICY` (getredash#5822) Update to latest in yarn 1.22.x series (getredash#6140) Use precompiled psycopg2-binary package instead of psycopg2 (getredash#6137) Pymongo version upgrade changes (getredash#5970) Bump jinja2 from 2.10.3 to 2.11.3 (getredash#5431) Update Python dependencies to eliminate version conflicts (getredash#6122) Upgrade Python version to 3.8 (getredash#6130) Try fixing cypress in a more correct way (getredash#6117) ci: Attempt to fix restyled.io test (getredash#6116) fix pivot table style error (getredash#6112) dependencies: pystache==0.6.0 (getredash#6091) ci: migrate to github workflow ci (getredash#6008) Update Simba ODBC driver (getredash#6110)
* Pymongo version upgrade changes * Get count logic has been changed to get using count_documents method
What type of PR is this?
Description
JSONOption
frombson.json_utils
setstz_aware
toFalse
from 4.0 (https://pymongo.readthedocs.io/en/stable/migrate-to-pymongo4.html#tz-aware-defaults-to-false), so setting value toTrue
explicitly indatetime_parser
collection_names
method has been changed tolist_collection_names
(https://pymongo.readthedocs.io/en/stable/migrate-to-pymongo4.html#database-collection-names-is-removed)count
method has been changed and usinglen
to get the length fromcursor
sincecount
method has been removed from 4.0 (https://pymongo.readthedocs.io/en/stable/migrate-to-pymongo4.html#collection-count-and-cursor-count-is-removed)How is this tested?
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings (if there are UI changes)