設定解除する

指定されたキーの構成プロパティをリセットします。

構文

unset(key: str)

パラメーター

パラメーター タイプ 説明
key str 設定を解除する構成のキー。

例示

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