Skip to content

Commit

Permalink
[SPARK-22874][PYSPARK][SQL][FOLLOW-UP] Modify error messages to show …
Browse files Browse the repository at this point in the history
…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 <[email protected]>

Closes #20074 from ueshin/issues/SPARK-22874_fup1.
  • Loading branch information
ueshin committed Dec 25, 2017
1 parent 33ae243 commit 12d20dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/pyspark/sql/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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__)

0 comments on commit 12d20dd

Please sign in to comment.