メインコンテンツまでスキップ

未設定

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

構文

unset(key: str)

パラメーター

パラメーター

Type

説明

key

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...
このページの見出し