雪花中克隆的表可以成为源吗?

在雪花中:

  • 我想克隆源
  • 对克隆执行操作
  • 将克隆变成源文件
  • 丢弃原始来源

阅读文档时,我认为克隆是一个与来源相同的独特,独立的对象。因此,在我的脑海中,我可以创建一个克隆并删除源,然后确定。有人在产品环境中这样做吗?

感谢您的指导。我们已经对该理论进行了测试,除了在旧源文件上浪费时间和文件加载历史记录外,它似乎没有任何副作用。但是我们可以。

iCMS 回答:雪花中克隆的表可以成为源吗?

是的,您可以创建一个克隆并删除该克隆的“源”。您也许也可以通过使用事务但使用更简单的代码来达到相同的效果:

begin transaction; 

   [do operation 1 on source table];
   [do operation 2 on source table];

commit;
,

我猜您的用例可能与我的用例相同。

正如西蒙(Simon)所说,这是可能的,但是使用克隆时,您需要注意访问控制特权。另请注意,您将丢失源表的加载历史记录。另外,如果克隆了表,则表克隆的历史数据将从创建克隆的时间/点开始

Access Control Privileges for Cloned Objects
A cloned object does not retain any granted privileges on the source object itself (i.e. clones do not automatically have the same privileges as their sources). A system administrator or the owner of the cloned object must explicitly grant any required privileges to the newly-created clone.

However,if the source object is a database or schema,for child objects contained in the source,the clone replicates all granted privileges on the corresponding child objects:

For databases,contained objects include schemas,tables,views,etc.

For schemas,contained objects include tables,etc.
本文链接:https://www.f2er.com/1669442.html

大家都在问