-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SNOW-1514712] Support UDFs for Snowpark IR (#2199)
Part I of supporting UDFs. This supports the `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.
- Loading branch information
1 parent
4b3cb8f
commit c7271ab
Showing
11 changed files
with
1,011 additions
and
693 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,314 changes: 659 additions & 655 deletions
1,314
src/snowflake/snowpark/_internal/proto/ast_pb2.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.