SET

説明

SET コマンドは、プロパティを設定したり、既存のプロパティの値を返したり、すべての SQLConf プロパティとその値および意味を返したりします。

DECLARE VARIABLE で定義された SQL 変数を設定するには、 SET VAR を使用します。

構文

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