snowpark-python icon indicating copy to clipboard operation
snowpark-python copied to clipboard

Support Python 3.10 union syntax in UDF

Open mknapik opened this issue 1 year ago • 3 comments

Please answer these questions before submitting your pull requests. Thanks!

  1. What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.

    Fixes https://github.com/snowflakedb/snowpark-python/issues/1302

  2. Fill out the following pre-review checklist:

    • [ ] I am adding a new automated test(s) to verify correctness of my new code
    • [ ] I am adding new logging messages
    • [ ] I am adding a new telemetry message
    • [ ] I am adding new credentials
    • [ ] I am adding a new dependency
  3. Please describe how your code solves the related issue.

    str | None should be equivalent to Optional[str]. Add additional type check for types.UnionType.

mknapik avatar Mar 12 '24 10:03 mknapik

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

github-actions[bot] avatar Mar 12 '24 10:03 github-actions[bot]

I have read the CLA Document and I hereby sign the CLA

mknapik avatar Mar 12 '24 10:03 mknapik