Github user gberger commented on the issue:

    https://github.com/apache/spark/pull/19792
  
    Maybe a more performant way to do the path in the error message would be to 
propagate it *up* the stack via try/catching the errors and adding the paths as 
it goes.
    
    But this way seems really weird to me...
    
    ```
        elif isinstance(a, ArrayType):
            try: 
                return ArrayType(_merge_type(a.elementType, b.elementType), 
True)
            catch TypeError as e:
                raise TypeError("arrayElement." + str(e))
    ```



---

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

Reply via email to