【发布时间】:2019-11-26 16:11:35
【问题描述】:
我对 GCP 和 BigQuery 非常陌生,我正在尝试使用 R 查询我在 Google BigQuery 上上传的简单数据集。在 IAM 设置中,我被列为“BigQuery 管理员”、“BigQuery 数据所有者” ”和“所有者”。
我也可以使用控制台查询数据集,但每次我都会收到一个
access denied, User does not have bigquery.jobs.create permission in project ABCD
这是我的代码:
library("tidyverse")
library("bigrquery")
bq_auth(use_oob = TRUE)
# Store the project id
projectid = "ABCD"
# Set your query
sql <- "SELECT * FROM test.testtable"
# Run the query and store the data in a dataframe
mydf <- query_exec(sql, projectid, use_legacy_sql = FALSE)
# Print the query result
mydf
到目前为止,我发现的所有来源都告诉我在 IAM 设置中激活 Big Query 的设置 - 但我已经完成了,所以我不知道该怎么做。非常感谢您的帮助!
【问题讨论】:
标签: r google-cloud-platform google-bigquery tidyverse bigrquery