【问题标题】:Why isn't the creator of a Snowflake temp table its owner?为什么雪花临时表的创建者不是它的所有者?
【发布时间】:2020-01-06 22:00:48
【问题描述】:

我正在运行以下代码。如您所见,我正在使用一个名为 owner_bi_db 的角色来创建一个临时表。

use database bi_db;
use schema [my_schema];

use role accountadmin;
drop table if exists _test;

use role owner_bi_db;
create temporary table _test as select 1 as t;

use role accountadmin;
show tables like '_test';

尽管 owner_bi_db 是临时表的创建者,但所有者最终还是 DEV_ROLE。这怎么可能?我认为所有权总是授予对象的创建者。无论我是在临时表还是常规表上执行此操作都是一样的。

【问题讨论】:

    标签: snowflake-cloud-data-platform


    【解决方案1】:

    啊!我找到了。我们在架构上获得了未来的所有权 授权,该授权覆盖了创建授权。很有趣。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-01-18
      • 1970-01-01
      • 2022-10-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-04
      相关资源
      最近更新 更多