Skip to content
Snippets Groups Projects
Commit d8220885 authored by Jeff Zhang's avatar Jeff Zhang Committed by Reynold Xin
Browse files

[SPARK-11917][PYSPARK] Add SQLContext#dropTempTable to PySpark

Author: Jeff Zhang <zjffdu@apache.org>

Closes #9903 from zjffdu/SPARK-11917.
parent b63938a8
No related branches found
No related tags found
No related merge requests found
......@@ -445,6 +445,15 @@ class SQLContext(object):
else:
raise ValueError("Can only register DataFrame as table")
@since(1.6)
def dropTempTable(self, tableName):
""" Remove the temp table from catalog.
>>> sqlContext.registerDataFrameAsTable(df, "table1")
>>> sqlContext.dropTempTable("table1")
"""
self._ssql_ctx.dropTempTable(tableName)
def parquetFile(self, *paths):
"""Loads a Parquet file, returning the result as a :class:`DataFrame`.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment