Skip to content
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

Error when using bqr_query to create views #66

Open
lynuhs opened this issue May 20, 2020 · 0 comments
Open

Error when using bqr_query to create views #66

lynuhs opened this issue May 20, 2020 · 0 comments

Comments

@lynuhs
Copy link

lynuhs commented May 20, 2020

I'm getting an error when creating a view with bqr_query(), though it still creates the view.

bqr_query(
projectId = projectId,
datasetId = datasetId,
query = "CREATE VIEW 'project_id.dataset_id.view_name' AS SELECT date, sum(volume) as vaolume FROM 'project_id.dataset_id.table_id' GROUP BY date",
useLegacySql = FALSE
)

Error in matrix(unlist(unlist(x$rows)), ncol = length(schema$name), byrow = TRUE) :
'data' must be of a vector type, was 'NULL'

Error : API Data failed to parse. Wrote diagnostic object to 'gar_parse_error.rds', use googleAuthR::gar_debug_parse('gar_parse_error.rds') to debug the data_parse_function.

error
1 SQL Error
message:
1 API Data failed to parse. \n Wrote diagnostic object to 'gar_parse_error.rds', use googleAuthR::gar_debug_parse('gar_parse_error.rds') to \n debug the data_parse_function.

Warning message:
In bqr_query("project_id", "dataset_id", "CREATE VIEW 'project_id.dataset_id.view_name' AS SELECT date, sum(volume) as volume FROM 'project_id.dataset_id.table_id' GROUP BY date", :
API Data failed to parse.
Wrote diagnostic object to 'gar_parse_error.rds', use googleAuthR::gar_debug_parse('gar_parse_error.rds') to
debug the data_parse_function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant