DESCRIBE CORTEX SEARCH SERVICE

描述 Cortex Search 服务 的属性。

DESCRIBE 可以缩写为 DESC。

语法

{ DESC | DESCRIBE } CORTEX SEARCH SERVICE <name>;
Copy

参数

name

指定 Cortex Search 服务的标识符。

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

有关更多信息,请参阅 标识符要求

输出

命令输出在以下列中提供 Cortex Search 服务属性和元数据:

数据类型

描述

name

TEXT

服务的名称。

database_name

TEXT

服务所在的数据库。

schema_name

TEXT

服务所在的架构。

target_lag

TEXT

服务内容滞后于基表更新的最长时间。

warehouse

TEXT

用于刷新服务的仓库。

search_column

TEXT

搜索列的名称。

attribute_columns

TEXT

服务中属性列的逗号分隔列表。

columns

TEXT

服务中列的逗号分隔列表。

definition

TEXT

SQL 查询用于创建服务。

comment

TEXT

与服务相关的任何注释。

service_query_url

TEXT

用于查询服务的 URL。

source_data_num_rows

NUMBER

物化源数据中的当前行数。

indexing_state

TEXT

服务的索引状态;SUSPENDED 或 RUNNING 其中之一。

indexing_error

TEXT

在最后一个索引管道中遇到的错误(如果存在)。

serving_state

TEXT

Cortex Search Service 的服务状态;SUSPENDED 或 RUNNING 其中之一。

created_on

TIMESTAMP_LTZ

Cortex Search 服务的创建时间。

data_timestamp

TIMESTAMP_LTZ

检查源数据以确定引发当前索引的变更的时间。

embedding_model

TEXT

该服务使用的矢量嵌入模型。

scoring_profile_count

NUMBER

The number of named scoring profiles defined in the service.

使用说明

  • 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.

示例

以下示例描述了名为 mysvc 的 Cortex Search 服务:

DESCRIBE CORTEX SEARCH SERVICE mysvc;
Copy
语言: 中文