aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/sql.py
diff options
context:
space:
mode:
authorMichael Armbrust <michael@databricks.com>2014-07-31 11:26:43 -0700
committerMichael Armbrust <michael@databricks.com>2014-07-31 11:26:43 -0700
commit72cfb13987bab07461266905930f84619b3a0068 (patch)
treef54cb89724c43628ba5b0fc8306c9bd53f74826e /python/pyspark/sql.py
parent3072b96026fa3e63e8eef780f2b04dd81f11ea27 (diff)
downloadspark-72cfb13987bab07461266905930f84619b3a0068.tar.gz
spark-72cfb13987bab07461266905930f84619b3a0068.tar.bz2
spark-72cfb13987bab07461266905930f84619b3a0068.zip
[SPARK-2397][SQL] Deprecate LocalHiveContext
LocalHiveContext is redundant with HiveContext. The only difference is it creates `./metastore` instead of `./metastore_db`. Author: Michael Armbrust <michael@databricks.com> Closes #1641 from marmbrus/localHiveContext and squashes the following commits: e5ec497 [Michael Armbrust] Add deprecation version 626e056 [Michael Armbrust] Don't remove from imports yet 905cc5f [Michael Armbrust] Merge remote-tracking branch 'apache/master' into localHiveContext 1c2727e [Michael Armbrust] Deprecate LocalHiveContext
Diffstat (limited to 'python/pyspark/sql.py')
-rw-r--r--python/pyspark/sql.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/pyspark/sql.py b/python/pyspark/sql.py
index 13f0ed4e35..9388ead5ea 100644
--- a/python/pyspark/sql.py
+++ b/python/pyspark/sql.py
@@ -15,6 +15,8 @@
# limitations under the License.
#
+import warnings
+
from pyspark.rdd import RDD, PipelinedRDD
from pyspark.serializers import BatchedSerializer, PickleSerializer
@@ -813,6 +815,10 @@ class LocalHiveContext(HiveContext):
130091
"""
+ def __init__(self, sparkContext, sqlContext=None):
+ HiveContext.__init__(self, sparkContext, sqlContext)
+ warnings.warn("LocalHiveContext is deprecated. Use HiveContext instead.", DeprecationWarning)
+
def _get_hive_ctx(self):
return self._jvm.LocalHiveContext(self._jsc.sc())