未設定
指定されたキーの構成プロパティをリセットします。
構文
unset(key: str)
パラメーター
パラメーター | Type | 説明 |
|---|---|---|
| str | 設定を解除するキー。 |
例
Python
spark.conf.set("my_key", "my_value")
spark.conf.get("my_key")
# 'my_value'
spark.conf.unset("my_key")
spark.conf.get("my_key")
# Traceback (most recent call last):
# ...
# pyspark...SparkNoSuchElementException: ... The SQL config "my_key" cannot be found...