-
Notifications
You must be signed in to change notification settings - Fork 49
refactor: Extract DataFrame execution to class #899
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
Conversation
68b2046
to
ef08f82
Compare
ef08f82
to
cbcf924
Compare
_MAX_CLUSTER_COLUMNS = 4 | ||
|
||
|
||
class BigQueryCachingExecutor: |
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.
Could you please add some comments to briefly explain how the cached executions works.
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.
Added a bit of an explantation to class description.
@@ -222,17 +223,17 @@ def add_labels(job_config, api_name: Optional[str] = None): | |||
|
|||
|
|||
def start_query_with_client( |
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.
Can we make the Session
as a class and then bq_client
and metrics
can be part of it?
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.
Would rather pass more precise context, this makes it more flexible for use in other places, and reduces circular dependency between files.
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 for improving code readability consistently.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> 🦕