You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to run an R script which uses bigrquery to run a query to BQ and download results within an AWS Fargate task which is rather disk space constrained. There are a lot of data and when I run that script it eventually fails with the following lines in logs:
Error in file(path, open = "wb") : cannot open the connection
Calls: <Anonymous> ... bq_download_pages -> <Anonymous> -> <Anonymous> -> file
In addition: There were 50 or more warnings (use warnings() to see the first 50)
I assume that the cause of the problem is in the fact that bq_download_pages creates a set of temporary files which aren't removed after being parsed.
As a workaround (rather nasty) I do the following after a call to bq_download_pages:
# A workaround cleanup until https://github.com/r-dbi/bigrquery/issues/343 is fixed
do.call(file.remove, list(list.files(tempdir(), pattern='bq-[[:xdigit:]]+\\.json', full.names=TRUE)))
But I believe the proper solution will be adding before the final line of bq_download_pages the following line:
do.call(file.remove, page_paths)
The text was updated successfully, but these errors were encountered:
I would like to run an R script which uses bigrquery to run a query to BQ and download results within an AWS Fargate task which is rather disk space constrained. There are a lot of data and when I run that script it eventually fails with the following lines in logs:
I assume that the cause of the problem is in the fact that
bq_download_pages
creates a set of temporary files which aren't removed after being parsed.As a workaround (rather nasty) I do the following after a call to
bq_download_pages
:But I believe the proper solution will be adding before the final line of
bq_download_pages
the following line:The text was updated successfully, but these errors were encountered: