-
Notifications
You must be signed in to change notification settings - Fork 322
Feat: adding async support for notebooks magics #1182
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
Fixed language issues. 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: - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-bigquery/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) Fixes #<issue_number_goes_here> 🦕
…t_bqml_magics updating
…t_bqml_magics updating branch to main
shollyman
left a comment
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.
Unclear on the completeness here, given the TODO comments and test failures.
| Args: | ||
| line (str): "%%bigquery" followed by arguments as required | ||
| query (str): SQL query to run | ||
| cell_body (str): SQL query or other command to run TODO |
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 you clarify here?
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.
Will update soon to resolve test failures - the TODOs are typos/oversights.
…t_bqml_magics updating local
…ery into feat_bqml_magics merging remote and local
|
|
||
| if args.send_long_job: | ||
| if args.destination_var: | ||
| IPython.get_ipython().push({args.destination_var: result}) |
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.
execution can reach here while job thread is still running in the async case. i think you'd want to refactor this so that there is one copy of the result post-processing code, and it gets called in both scenarios (sync and async) after completion of the job (maybe as a separate function).
…ery into feat_bqml_magics merge local and remote
…ery into feat_bqml_magics merge local and remote
|
We're moving the magics code to a new repo. Closing this and tracking support here: googleapis/python-bigquery-magics#17 |
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: