shujingyang-db commented on code in PR #52140: URL: https://github.com/apache/spark/pull/52140#discussion_r2317737509
########## python/pyspark/sql/tests/arrow/test_arrow_udtf.py: ########## @@ -341,15 +345,87 @@ def eval(self) -> Iterator["pa.Table"]: # Return string values that cannot be coerced to int result_table = pa.table( { - "id": pa.array(["abc", "def", "xyz"], type=pa.string()), + "id": pa.array(["1", "2", "xyz"], type=pa.string()), Review Comment: Casting from "1" to 1 should work. I added a test_arrow_udtf_type_coercion_string_to_int_safe. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org