-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-22874][PYSPARK][SQL] Modify checking pandas version to use LooseVersion. #20054
Conversation
Test build #85303 has finished for PR 20054 at commit
|
Test build #85304 has finished for PR 20054 at commit
|
Test build #85305 has finished for PR 20054 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
python/pyspark/sql/utils.py
Outdated
@@ -112,6 +112,15 @@ def toJArray(gateway, jtype, arr): | |||
return jarr | |||
|
|||
|
|||
def _require_minimum_pandas_version(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh. BTW, I think we can just name it _require_minimum_pandas_version
-> require_minimum_pandas_version
and _require_minimum_pyarrow_version
-> require_minimum_pyarrow_version
. It's fine as is too to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. I'll update them. Thanks!
Test build #85306 has finished for PR 20054 at commit
|
Still LGTM |
Merged to master. |
What changes were proposed in this pull request?
Currently we check pandas version by capturing if
ImportError
for the specific imports is raised or not but we can compareLooseVersion
of the version strings as the same as we're checking pyarrow version.How was this patch tested?
Existing tests.