holdenk commented on code in PR #59592:
URL: https://github.com/apache/spark/pull/59592#discussion_r4620502235
##########
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:
ah yeah I've been meaning to improve perf here, I've filed
https://issues.apache.org/jira/browse/SPARK-62040 to track it but doesn't block
this
--
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]