RESET
說明
RESET 指令會將特定於目前階段的執行時期組態重設為預設值,這些組態是透過 SET 指令設定的。
語法
RESET;
RESET configuration_key;
參數
-
(無)
將特定於目前階段的執行時期組態 (這些組態是透過 SET 指令設定的) 重設為預設值。
-
configuration_key
將
configuration_key
的值還原為預設值。如果預設值未定義,則會移除configuration_key
。
範例
-- Reset any runtime configurations specific to the current session which were set via the SET command to their default values.
RESET;
-- If you start your application with --conf spark.foo=bar and set spark.foo=foobar in runtime, the example below will restore it to 'bar'. If spark.foo is not specified during starting, the example below will remove this config from the SQLConf. It will ignore nonexistent keys.
RESET spark.abc;