BigQuery:在没有查询基础表的权限的情况下查询视图
BiqQuery: querying a view without permissions to query underlying tables
我有一个 table 需要查询驱动器访问范围。我想知道是否有一种方法可以创建不需要查询此权限的视图。
根据有关 data drive access 的文档,这是不可能的
您将需要访问数据驱动器。
但作为一种解决方法,您可以将该数据移动到 bigquery 上的数据集中,该数据集将像 authorized view 一样工作。根据定义:
Giving a view access to a dataset is also known as creating an authorized view in BigQuery. An authorized view lets you share query results with particular users and groups without giving them access to the underlying tables. You can also use the view's SQL query to restrict the columns (fields) the users are able to query.
不过,您的用户仍需要访问存储视图的数据集。
For your data analysts to query the view, they need to be granted the bigquery.dataViewer role on the dataset containing the view.
这样就可以查询有访问限制的数据。即使在 google 文档中,也有一个指南可用于生成名为 Create an authorized view.
的此类查询
我有一个 table 需要查询驱动器访问范围。我想知道是否有一种方法可以创建不需要查询此权限的视图。
根据有关 data drive access 的文档,这是不可能的 您将需要访问数据驱动器。
但作为一种解决方法,您可以将该数据移动到 bigquery 上的数据集中,该数据集将像 authorized view 一样工作。根据定义:
Giving a view access to a dataset is also known as creating an authorized view in BigQuery. An authorized view lets you share query results with particular users and groups without giving them access to the underlying tables. You can also use the view's SQL query to restrict the columns (fields) the users are able to query.
不过,您的用户仍需要访问存储视图的数据集。
For your data analysts to query the view, they need to be granted the bigquery.dataViewer role on the dataset containing the view.
这样就可以查询有访问限制的数据。即使在 google 文档中,也有一个指南可用于生成名为 Create an authorized view.
的此类查询