RESET

适用于:check marked yes Databricks SQL check marked yes Databricks Runtime

如果使用 SET 命令更改了会话级别的 Databricks SQL 参数,则将其重置为全局默认值。 使用 Databricks Runtime 时,参数称为 SQL Conf 属性。

语法

RESET [ parameter_key ]

parameters

  • parameter_key

    适用于:check marked yes Databricks SQL

    可以选择将指定的值重置为全局默认值。 如果不命名参数,则会重置所有参数。

  • (none)

    适用于:check marked yes Databricks Runtime

    重置特定于当前会话的已通过 SET 命令设置为默认值的任何运行时配置。

示例

-- Reset all parameters.
> RESET;

-- I, Databricks SQL if the default value of ansi_mode is true and you ran SET ansi_mode=false, the example below will restore it to 'true'.
> RESET ansi_mode;