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|
+-----------------------------+-----+