在 Snowsight 中使用用户定义的函数

您可以在 SQL 或 Snowsight 中使用用户定义的函数 (UDFs)。

In Snowsight, in the navigation menu, select Catalog » Database Explorer, and then search for or browse to the UDF. Select the UDF to review details about and manage the function.

您必须具有 相关权限 才能在 Snowsight 中访问和管理 UDF。

在 Snowsight 中探索 UDF 详细信息

在 Snowsight 中打开 UDF 后,您可以执行以下操作:

  • 确定函数的创建时间,以及有关函数的任何注释。您可以将鼠标悬停在时间详细信息上以查看确切的创建日期和时间。

  • 查看有关 UDF 的其他详细信息,包括:

    • UDF 采用的实参及其所需的数据类型(如果适用)。

    • 函数结果的数据类型。

    • 函数是否为聚合函数。

    • 函数是否为安全函数。

    • 函数是否为表函数。

    • 编写 UDF 所用的语言。例如,Java。

  • Function definition 部分中查看 UDF 的 SQL 定义。

  • Privileges 部分中查看对函数具有权限的角色。

在 Snowsight 中管理 UDF

您可以对 Snowsight 中的 UDF 执行以下基本管理任务:

  • To edit the name of the function or add a comment, select 更多选项 » Edit.

  • To drop the function, select 更多选项 » Drop.

  • To transfer ownership of the function to another role, select 更多选项 » Transfer Ownership

语言: 中文