dropGlobalTempView
Remove a view temporária global com o nome view fornecido do catálogo.
Sintaxe
dropGlobalTempView(viewName: str)
Parâmetros
Parâmetro | Tipo | Descrição |
|---|---|---|
| str | Nome da view global a ser descartada. |
Devoluções
bool
Se a view global foi descartada com sucesso ou não.
Notas
Se a view já tiver sido armazenada em cache anteriormente, ela também será removida do cache.
Exemplos
Python
spark.createDataFrame([(1, 1)]).createGlobalTempView("my_table")
# Dropping the global view.
spark.catalog.dropGlobalTempView("my_table")
# True
# Throw an exception if the global view does not exist.
spark.table("global_temp.my_table")
# Traceback (most recent call last):
# ...
# AnalysisException: ...