Note
Kailangan ng pahintulot para ma-access ang page na ito. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Drops the local temporary view with the given view name in the catalog. If the view has been cached before, then it will also be uncached. Returns true if this view is dropped successfully, false otherwise.
Syntax
dropTempView(viewName: str)
Parameters
| Parameter | Type | Description |
|---|---|---|
viewName |
str | Name of the temporary view to drop. |
Returns
bool
If the temporary view was successfully dropped or not.
Examples
spark.createDataFrame([(1, 1)]).createTempView("my_table")
# Dropping the temporary view.
spark.catalog.dropTempView("my_table")
# True
# Throw an exception if the temporary view does not exist.
spark.table("my_table")
# Traceback (most recent call last):
# ...
# AnalysisException: ...