Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/21928#discussion_r206411041
--- Diff: python/pyspark/serializers.py ---
@@ -236,6 +237,11 @@ def create_array(s, t):
# TODO: need decode before converting to Arrow in Python 2
return pa.Array.from_pandas(s.apply(
lambda v: v.decode("utf-8") if isinstance(v, str) else v),
mask=mask, type=t)
+ elif t is not None and pa.types.is_decimal(t) and \
+ LooseVersion("0.9.0") <= LooseVersion(pa.__version__) <
LooseVersion("0.10.0"):
--- End diff --
Yea, but not sure if I am aware of other issues specific to PyArrow
versions. Will make a single place if I happen to fix things specific to
PyArrow versions for sure.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]