We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0d7ec5 commit 1878c70Copy full SHA for 1878c70
python/pyspark/sql/context.py
@@ -686,9 +686,10 @@ def _ssql_ctx(self):
686
self._scala_HiveContext = self._get_hive_ctx()
687
return self._scala_HiveContext
688
except Py4JError as e:
689
- raise Exception("You must build Spark with Hive. "
690
- "Export 'SPARK_HIVE=true' and run "
691
- "build/sbt assembly", e)
+ warnings.warn("You must build Spark with Hive. "
+ "Export 'SPARK_HIVE=true' and run "
+ "build/sbt assembly")
692
+ raise e
693
694
def _get_hive_ctx(self):
695
return self._jvm.HiveContext(self._jsc.sc())
0 commit comments