Zrušit

Obnoví vlastnost konfigurace pro daný klíč.

Syntaxe

unset(key: str)

Parametry

Parameter Typ Description
key str Klíč konfigurace, která se má zrušit.

Příklady

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