Snowflake 数据共享 - Grant 部分执行 |授予未执行

Snowflake Data Sharing - Grant partially executed | Grant not executed

目标:

授予数据共享更多权限

描述:

Please note that I'm using a 30 days trial version of Snowflake.

我已经尝试通过 UI 创建数据共享,但尽管能够 添加消费者 完整帐户部分 ,该帐户的用户无法更新或插入共享数据。

该帐户的用户只能 select 数据。但根据 documentation 完整帐户 的用户应该能够执行数据操作(插入、更新等)。

我也尝试过手动创建数据共享的方式,但我一直收到以下查询消息

SQL 代码示例:

use role accountadmin;

create share SHARE_DATABASE;

grant usage,modify on database TEST_DATABASE to share SHARE_DATABASE;
--Message: Statement executed successfully.

grant usage,modify on schema TEST_DATABASE.PUBLIC to share SHARE_DATABASE;
--Message: Grant partially executed: privileges [MODIFY] not granted.

grant select,insert,update on table TEST_DATABASE.PUBLIC.TABLE_TEST_DATA to share SHARE_DATABASE;
--Message: Grant partially executed: privileges [INSERT, UPDATE] not granted.

--When trying to execute the grant for update only
grant update on table TEST_DATABASE.PUBLIC.TABLE_TEST_DATA to share SHARE_DATABASE;
--Message: Grant not executed: Operation not supported on a SHARE object.

Snowflake 共享数据库是“只读”的 - 请查看此处 link 的文档以了解更多详细信息:

https://docs.snowflake.com/en/user-guide/data-sharing-intro.html#introduction-to-secure-data-sharing

希望对你有帮助...丰富

p.s。如果这个(或另一个)答案对您有帮助,请花点时间“接受”有帮助的答案 通过单击答案旁边的复选标记将其从“灰色”切换为“已填写”。

报错信息正常:

https://docs.snowflake.com/en/sql-reference/sql/grant-privilege-share.html

您参考的文档说:

Users in a reader account can query data that has been shared with it, but cannot perform any of the DML tasks that are allowed in a full account (data loading, insert, update, etc.).

完整帐户是共享的所有者。