SET

描述

SET 命令用于设置属性、返回现有属性的值或返回所有 SQLConf 属性及其值和含义。

语法

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

参数

示例

-- Set a property.
SET spark.sql.variable.substitute=false;

-- List all SQLConf properties with value and meaning.
SET -v;

-- List all SQLConf properties with value for current session.
SET;

-- List the value of specified property key.
SET spark.sql.variable.substitute;
+-----------------------------+-----+
|                          key|value|
+-----------------------------+-----+
|spark.sql.variable.substitute|false|
+-----------------------------+-----+