-
Notifications
You must be signed in to change notification settings - Fork 286
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
New Argument Google.Cloud.Bigquery.Magics --export_to_csv
#72
Comments
Google.Cloud.Bigquery.Magics
--export_to_csv
`--export_to_csv
@julioyildo It's not planned AFAIK, but exporting data as CSV actually sounds as something that quite a few people might find useful (IMHO). I will bring up the proposal at the next meeting. Also, thanks for the detailed specs and even a sample implementation! |
Thank you @plamut ! :) |
@julioyildo A quick update - directly implementing the export-to-csv functionality in cell magic is not planned, but there are plans to add a dedicated "export API" on the backend. That API can then be integrated in cell magic. It's not something that can be expected in the very near future, though. |
@plamut Any updates that you know of regarding this feature? It would be extremely helpful for me as well. |
@NI1993 I can ask if anything has changed in this regard, will post any updates under your feature request. Edit: I see that the original feature request is about the Jupyter notebook cell magic, thus thanks for opening a new request. |
@plamut Thanks, Highly appreciated! |
Revisiting this FR as it's languished for a bit. I'm going to close this out, as this seems like a clear win for the https://cloud.google.com/bigquery/docs/exporting-data#sql for examples of using this, but the core idea is that you can run exports via the query language, rather than needing to accomplish this in two stages. |
New Argument
--export_to_csv
Hello,
In the case of our business, we would need an argument capable of handling csv export on GCS directly with magic queries.
We thought this new argument could enrich the library.
Use Cases:
A) Without
--destination_table
result :
1 - create a tomparary table with the query result
2 - export the table to gcs
3 - delete the temporary table
B) With
--destination_table
In this case we don't need to declare "temporary_dataset"
because the user wants to save the result in Bigquery before exporting it to GCS.
result :
1 - Save the query in
projectName.consumers.emails_280319
2 - export the table to gcs
Code Snippet:
_handle_export_to_csv
:_cell_magic()
Would you know if a similar feature is planned for the library?
Thank you very much.
The text was updated successfully, but these errors were encountered: