[英]With Dataform table creation I get an error "BigQuery: Permission denied while getting Drive credentials"
I am using Dataform to create a table on a dataset that I have created on a Google Cloud project, but I get this error:我正在使用 Dataform 在我在 Google Cloud 项目上创建的数据集上创建一个表,但出现此错误:
"Access Denied: BigQuery BigQuery: Permission denied while getting Drive credentials."
“访问被拒绝:BigQuery BigQuery:获取云端硬盘凭据时权限被拒绝。”
Why?为什么? What should I do about this?
我该怎么办?
In a compiled version of a sqlx dataform file I try to create or replace a table.在 sqlx 数据格式文件的编译版本中,我尝试创建或替换一个表。
CREATE OR REPLACE TABLE my_project_id.my_data_set.my_table
I'm not using a table that reads something from Google Drive but I am creating a new one.我没有使用从 Google Drive 读取内容的表格,但我正在创建一个新表格。 The service account associated with my dataform project has Dataset Owner access rights to my_data_set, and interestingly the dataform project is able to create views, but not tables.
与我的数据表单项目关联的服务帐户具有对 my_data_set 的数据集所有者访问权限,有趣的是,数据表单项目能够创建视图,但不能创建表。
I finally found a solution to this problem.我终于找到了解决这个问题的方法。 To solve this problem one has to do this:
要解决这个问题,必须这样做:
Interestingly, dataform is not able to create table if it does not have access rights to the source of the tables that it reads.有趣的是,如果 dataform 没有访问它读取的表的源的权限,则它无法创建表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.