DESCRIBE PIPE

描述为管道指定的属性以及属性的默认值。

DESCRIBE 可以缩写为 DESC。

另请参阅:

DROP PIPEALTER PIPECREATE PIPESHOW PIPES

语法

DESC[RIBE] PIPE <name>
Copy

参数

name

指定要描述的管道的标识符。如果标识符包含空格或特殊字符,则整个字符串必须放在双引号内。放在双引号内的标识符也区分大小写。

使用说明

  • 仅返回以下角色的结果:(即对管道具有 OWNERSHIP 权限的角色)、对管道具有 MONITOR 或 OPERATE 权限的角色,或者 具有全局 MONITOR EXECUTION 权限的角色。

  • 要确定管道的当前状态,请查询 SYSTEM$PIPE_STATUS 函数。

  • To post-process the output of this command, you can use the pipe operator (->>) or the RESULT_SCAN function. Both constructs treat the output as a result set that you can query.

    The output column names for this command are generated in lowercase. If you consume a result set from this command with the pipe operator or the RESULT_SCAN function, use double-quoted identifiers for the column names in the query to ensure that they match the column names in the output that was scanned. For example, if the name of an output column is type, then specify "type" for the identifier.

输出

命令输出在以下列中提供管道属性和元数据:

| created_on | name | database_name | schema_name | definition | owner | notification_channel | comment | integration | pattern | error_integration | invalid_reason | kind |
Copy

描述

created_on

创建管道的日期和时间。

name

管道的名称。

database_name

存储管道的数据库。

schema_name

存储管道的架构。

definition

COPY 语句用于将排队文件中的数据加载到 Snowflake 表中。

owner

拥有管道的角色名称(即对管道具有 OWNERSHIP 权限的角色)。

notification_channel

DEFINITION 列中命名的暂存区的 Amazon SQS 队列的 Amazon Resource Name。

comment

此管道的注释。

integration

依赖通知事件从 Google Cloud Storage 或 Microsoft Azure 云存储触发数据加载的管道的通知集成名称。

pattern

管道定义中的 COPY INTO <table> 语句中的 PATTERN 复制选项值(如果指定了复制选项)。

error_integration

依赖于 Amazon S3 云存储中的错误事件来触发通知的管道的通知集成名称。

invalid_reason

显示可能存在问题的管道的一些详细信息。您可以使用提供的信息更有效地对管道和 :doc:` SYSTEM$PIPE_STATUS </sql-reference/functions/system_pipe_status>` 进行故障排除。如果管道没有问题,则值为 NULL。

kind

管道的种类,即 STAGE。

Kafka 相关列

描述

broker_integration

与 Kafka 结合使用的外部访问集成的名称。

broker_secret

与 Kafka 结合使用的密钥的名称。

row_format

记录的行格式:JSONAVRO

schema

表示为变体的记录架构。

topic

同步主题的名称。

示例

描述在 CREATE PIPE 中的示例中创建的 mypipe 管道:

desc pipe mypipe;

+-------------------------------+--------+---------------+-------------+---------------------------------+----------+---------+
| created_on                    | name   | database_name | schema_name | definition                      | owner    | comment |
|-------------------------------+--------+---------------+-------------+---------------------------------+----------+---------|
| 2017-08-15 06:11:05.703 -0700 | MYPIPE | MYDATABASE    | PUBLIC      | copy into mytable from @mystage | SYSADMIN |         |
+-------------------------------+--------+---------------+-------------+---------------------------------+----------+---------+
Copy
语言: 中文