guan404ming commented on code in PR #59592:
URL: https://github.com/apache/spark/pull/59592#discussion_r4625777458
##########
python/pyspark/sql/tests/test_udf_transpile_hypothesis.py:
##########
@@ -664,6 +720,38 @@ def test_lambda_plus_four_matches_python(self, value):
transpiled, interpreted = self._run(lambda_plus_four, LongType(),
df, "a")
self.assertEqual(transpiled, interpreted, f"lambda_plus_four
mismatch on {value!r}")
+ @_hyp_settings
+ @given(value=_case_str_strategy)
+ @_seed_examples(_STR_EDGES)
+ def test_str_upper_matches_python(self, value):
+ df = self._single_arg_df(value, StringType())
Review Comment:
Thanks for filing it, I gave SPARK-62040 a try in #60716, could you help
take a look when you have time?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]