是否可以仅捕获雪花流中的插入和更新

发布于 2025-01-18 08:02:16 字数 259 浏览 2 评论 0原文

我在表 TEST1 上创建了雪花流,以捕获 TEST1 表中数据的变化,如下所示。我只希望在 STREAM_TEST 中捕获插入和更新,这样当我从 TEST1 中删除记录时,它就不应该在 STREAM_TEST 中捕获。有办法做到这一点吗?

create or replace stream STREAM_TEST
on table TEST1
APPEND_ONLY = FALSE
comment = 'stream on stage table';

I have created snowflake stream on table TEST1 to capture change in the data in TEST1 table as below. I only want Inserts and Updates to be captured in STREAM_TEST, so that when I delete records from TEST1, it shouldn't get captured in STREAM_TEST. Is there a way to do that?

create or replace stream STREAM_TEST
on table TEST1
APPEND_ONLY = FALSE
comment = 'stream on stage table';

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文