Repository: spark
Updated Branches:
  refs/heads/master 33ae2437b -> 12d20dd75


[SPARK-22874][PYSPARK][SQL][FOLLOW-UP] Modify error messages to show actual 
versions.

## What changes were proposed in this pull request?

This is a follow-up pr of #20054 modifying error messages for both pandas and 
pyarrow to show actual versions.

## How was this patch tested?

Existing tests.

Author: Takuya UESHIN <ues...@databricks.com>

Closes #20074 from ueshin/issues/SPARK-22874_fup1.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/12d20dd7
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/12d20dd7
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/12d20dd7

Branch: refs/heads/master
Commit: 12d20dd75b1620da362dbb5345bed58e47ddacb9
Parents: 33ae243
Author: Takuya UESHIN <ues...@databricks.com>
Authored: Mon Dec 25 20:29:10 2017 +0900
Committer: Takuya UESHIN <ues...@databricks.com>
Committed: Mon Dec 25 20:29:10 2017 +0900

----------------------------------------------------------------------
 python/pyspark/sql/utils.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/12d20dd7/python/pyspark/sql/utils.py
----------------------------------------------------------------------
diff --git a/python/pyspark/sql/utils.py b/python/pyspark/sql/utils.py
index fb7d42a..08c34c6 100644
--- a/python/pyspark/sql/utils.py
+++ b/python/pyspark/sql/utils.py
@@ -118,7 +118,8 @@ def require_minimum_pandas_version():
     from distutils.version import LooseVersion
     import pandas
     if LooseVersion(pandas.__version__) < LooseVersion('0.19.2'):
-        raise ImportError("Pandas >= 0.19.2 must be installed on calling 
Python process")
+        raise ImportError("Pandas >= 0.19.2 must be installed on calling 
Python process; "
+                          "however, your version was %s." % pandas.__version__)
 
 
 def require_minimum_pyarrow_version():
@@ -127,4 +128,5 @@ def require_minimum_pyarrow_version():
     from distutils.version import LooseVersion
     import pyarrow
     if LooseVersion(pyarrow.__version__) < LooseVersion('0.8.0'):
-        raise ImportError("pyarrow >= 0.8.0 must be installed on calling 
Python process")
+        raise ImportError("pyarrow >= 0.8.0 must be installed on calling 
Python process; "
+                          "however, your version was %s." % 
pyarrow.__version__)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to