设置

描述

SET命令设置一个属性,返回现有属性的值或返回所有带有值和含义的SQLConf属性。

语法

SET
SET [ -v ]
SET property_key[ = property_value ]

参数

示例

-- 设置一个属性。
SET spark.sql.variable.substitute=false;
-- 列出所有 SQLConf 属性及其值和含义。
SET -v;
-- 列出当前会话中所有 SQLConf 属性及其值。
SET;
-- 列出指定属性键的值。
SET spark.sql.variable.substitute;
+-----------------------------+-----+
| key|value|
+-----------------------------+-----+
|spark.sql.variable.substitute|false|
+-----------------------------+-----+