Skip to content

Commit 0995787

Browse files
marmbruspwendell
authored andcommitted
Minor fix to python table caching API.
Author: Michael Armbrust <[email protected]> Closes #585 from marmbrus/pythonCacheTable and squashes the following commits: 7ec1f91 [Michael Armbrust] Minor fix to python table caching API. (cherry picked from commit 497be3c) Signed-off-by: Patrick Wendell <[email protected]>
1 parent 4ed58aa commit 0995787

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/pyspark/sql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@ def table(self, tableName):
143143
"""
144144
return SchemaRDD(self._ssql_ctx.table(tableName), self)
145145

146-
def cacheTable(tableName):
146+
def cacheTable(self, tableName):
147147
"""
148148
Caches the specified table in-memory.
149149
"""
150150
self._ssql_ctx.cacheTable(tableName)
151151

152-
def uncacheTable(tableName):
152+
def uncacheTable(self, tableName):
153153
"""
154154
Removes the specified table from the in-memory cache.
155155
"""

0 commit comments

Comments
 (0)