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

    https://github.com/apache/spark/pull/19325#discussion_r140849264
  
    --- Diff: python/pyspark/sql/tests.py ---
    @@ -3308,12 +3306,12 @@ def test_vectorized_udf_invalid_length(self):
             from pyspark.sql.functions import pandas_udf, col
             import pandas as pd
             df = self.spark.range(10)
    -        raise_exception = pandas_udf(lambda: pd.Series(1), LongType())
    +        raise_exception = pandas_udf(lambda i: pd.Series(1), LongType())
             with QuietTest(self.sc):
                 with self.assertRaisesRegexp(
                         Exception,
    --- End diff --
    
    This one is actually a `Py4jJavaError` so I don't think we can recognize 
the `RuntimeError`


---

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

Reply via email to