Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SNOW-1514712] Support UDFs for Snowpark IR #2199

Conversation

sfc-gh-lspiegelberg
Copy link
Contributor

@sfc-gh-lspiegelberg sfc-gh-lspiegelberg commented Aug 30, 2024

Part I of supporting UDFs. This supports udf decorator.

Other:

  • Fixes in udf_utils.py the case when in get_opt_arg_defaults the returned python arg_spec = inspect.getfullargspec(target_func) is None. (Yes, this actually happens).
  • Fixes in conftest.py for the AST tests the initialization of the session. Previous init using constructors is incorrect, need to use builder pattern as session is not properly registered for _get_active_session else.
  • Changes call_udf to more correctly become calling a builtin function.

src/snowflake/snowpark/_internal/ast.py Outdated Show resolved Hide resolved
tests/ast/data/col_udf.test Outdated Show resolved Hide resolved
@sfc-gh-lspiegelberg sfc-gh-lspiegelberg merged commit c7271ab into ls-SNOW-1491199-merge-phase0-server-side Sep 3, 2024
6 checks passed
@sfc-gh-lspiegelberg sfc-gh-lspiegelberg deleted the ls-SNOW-1514712-udfs branch September 3, 2024 22:48
@github-actions github-actions bot locked and limited conversation to collaborators Sep 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants