-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add 'QueryJob.query_plan' property. #3799
Add 'QueryJob.query_plan' property. #3799
Conversation
@tswast I noted your question about creating a to-be-written This is different for |
bigquery/tests/unit/test_job.py
Outdated
'computeRatioMax': 1.09861, | ||
'writeRatioAvg': 3.32193, | ||
'writeRatioMax': 2.30258, | ||
'recordsRead': 100, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
bigquery/tests/unit/test_job.py
Outdated
'writeRatioAvg': 3.32193, | ||
'writeRatioMax': 2.30258, | ||
'recordsRead': 100, | ||
'recordsWritten': 1, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Note: I still think a class would be useful for string to int conversion, but it was only a P2 requirement from BQ team, so I won't block the PR. |
@@ -1278,6 +1284,20 @@ def from_api_repr(cls, resource, client): | |||
job._set_properties(resource) | |||
return job | |||
|
|||
@property | |||
def query_plan(self): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
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.
Thanks!
The new class will definitely be a usability improvement over using dictionaries. I agree that usage will likely be low. That's why it was a P2 item in the requirements doc from the BQ eng team.
Cherry-picked from PR #3721