holdenk commented on code in PR #59592:
URL: https://github.com/apache/spark/pull/59592#discussion_r4620442151
##########
python/pyspark/sql/tests/test_udf_transpile_hypothesis.py:
##########
@@ -143,6 +144,25 @@ def _env_opts_in(value: Optional[str]) -> bool:
_bool_strategy = st.one_of(st.none(), st.booleans())
+ # Case mappings come from CPython's Unicode database on the interpreted
+ # side and from ICU on the transpiled side, and the two can ship different
+ # Unicode versions (e.g. U+019B gained an uppercase in Unicode 16). The
+ # ``upper`` / ``lower`` tests therefore draw from Basic Latin through Latin
+ # Extended-A, whose case mappings are long stable, plus the Greek sigmas
+ # for the context-sensitive final-sigma rule (SPARK-59816).
+ _case_str_strategy = st.one_of(
+ st.none(),
+ st.text(st.one_of(st.characters(max_codepoint=0x17F),
st.sampled_from("Σσς"))),
+ )
Review Comment:
This makes sense as a restriction on case and I'm glad we've documented it
at least in a test.
--
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]