diff options
author | Michael Armbrust <michael@databricks.com> | 2014-04-29 00:36:15 -0700 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-04-29 00:36:34 -0700 |
commit | 0995787ac6c71b7786ec68e3ee6f572ad7bf56a3 (patch) | |
tree | 6d3162fb22d985386635adf3a6f70ec723ddce51 | |
parent | 4ed58aaa3babef38e5587cd5ce781432d9f672a7 (diff) | |
download | spark-0995787ac6c71b7786ec68e3ee6f572ad7bf56a3.tar.gz spark-0995787ac6c71b7786ec68e3ee6f572ad7bf56a3.tar.bz2 spark-0995787ac6c71b7786ec68e3ee6f572ad7bf56a3.zip |
Minor fix to python table caching API.
Author: Michael Armbrust <michael@databricks.com>
Closes #585 from marmbrus/pythonCacheTable and squashes the following commits:
7ec1f91 [Michael Armbrust] Minor fix to python table caching API.
(cherry picked from commit 497be3ca2d8f0600e927f8f036177fcd3bb6e229)
Signed-off-by: Patrick Wendell <pwendell@gmail.com>
-rw-r--r-- | python/pyspark/sql.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/pyspark/sql.py b/python/pyspark/sql.py index 114fa138d0..1a62031db5 100644 --- a/python/pyspark/sql.py +++ b/python/pyspark/sql.py @@ -143,13 +143,13 @@ class SQLContext: """ return SchemaRDD(self._ssql_ctx.table(tableName), self) - def cacheTable(tableName): + def cacheTable(self, tableName): """ Caches the specified table in-memory. """ self._ssql_ctx.cacheTable(tableName) - def uncacheTable(tableName): + def uncacheTable(self, tableName): """ Removes the specified table from the in-memory cache. """ |