Categories:

System functions (System Control)

SYSTEM$SNOWPIPE_STREAMING_UPDATE_CHANNEL_OFFSET_TOKEN

用新的偏移令牌更新 Snowpipe Streaming 使用的特定通道的偏移令牌。

For more information about channels and offset tokens, see Snowpipe Streaming.

另请参阅:

SHOW CHANNELS

语法

SYSTEM$SNOWPIPE_STREAMING_UPDATE_CHANNEL_OFFSET_TOKEN('<dbName>.<schemaName>.<tableName>', '<channelName>', '<new_offset_token>')

实参

dbName

存储通道的数据库的名称。

schemaName

存储通道的架构的名称。

tableName

通道映射到的表的名称。

channelName

通道的名称。

new_offset_token

新的偏移令牌。

使用说明

  • 执行此函数的角色必须至少具有通道映射到的表的 INSERT 权限。

示例

Updates the offset token for mychannel in mydb.myschema.mytable with a <new_offset_token>:

show channels;
select SYSTEM$SNOWPIPE_STREAMING_UPDATE_CHANNEL_OFFSET_TOKEN('mydb.myschema.mytable', 'mychannel', '<new_offset_token>');
show channels;