หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Drops the global temporary view with the given view name in the catalog.
Syntax
dropGlobalTempView(viewName: str)
Parameters
| Parameter | Type | Description |
|---|---|---|
viewName |
str | Name of the global view to drop. |
Returns
bool
If the global view was successfully dropped or not.
Notes
If the view has been cached before, then it will also be uncached.
Examples
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: ...