GitHub user viirya opened a pull request:

    https://github.com/apache/spark/pull/22807

    [WIP][SPARK-25811][PySpark] Raise a proper error when unsafe cast is 
detected by PyArrow

    ## What changes were proposed in this pull request?
    
    Since 0.11.0, PyArrow supports to raise an error for unsafe cast. We should 
use it to raise a proper error for pandas udf users when such cast is detected.
    
    We can also add a config to control such behavior.
    
    ## How was this patch tested?
    
    Added test and manually test.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/viirya/spark-1 SPARK-25811

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/22807.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #22807
    
----
commit 7c3fa6d9fe6ba68476746df64276d4594b24bef8
Author: Liang-Chi Hsieh <viirya@...>
Date:   2018-10-23T15:07:13Z

    Raise a proper error when unsafe cast detected by PyArrow.

----


---

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

Reply via email to