Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20725#discussion_r211715497
  
    --- Diff: python/pyspark/sql/types.py ---
    @@ -1597,6 +1598,12 @@ def to_arrow_type(dt):
             arrow_type = pa.decimal128(dt.precision, dt.scale)
         elif type(dt) == StringType:
             arrow_type = pa.string()
    +    elif type(dt) == BinaryType:
    +        # TODO: remove version check once minimum pyarrow version is 0.10.0
    +        if LooseVersion(pa.__version__) < LooseVersion("0.10.0"):
    +            raise TypeError("Unsupported type in conversion to Arrow: " + 
str(dt) +
    --- End diff --
    
    Could you document all the features that require pyarrow 0.10? 
    
    Thanks!


---

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

Reply via email to