You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Table functions, including builtin snowpark ones like flatten, raise an exception in tests: NotImplementedError: [Local Testing] table_function.TableFunctionJoin is not supported. When I try to patch it, the patched function is passed a normal Column and not a ColumnEmulator with the underlying rows series:
Nor can I patch the builtin table function. As far as I can tell, patching functions using snowflake.snowpark.mock does not support returning 0, 1, or many rows per input row. But more specifically, when I put a debugger inside patch_flatten() it is being passed a normal Column and not a ColumnEmulator so I can't interact with the underlying series of rows.
Ideally builtin table functions like flatten have test implementations, but more generally it might be more practical to support patching table functions.
If this is not an existing feature in snowflake-snowpark-python. How would this impact/improve non local testing mode?
Table functions are a fairly common use case when transforming semi structured data into structured data, so it would make the library more robust.
References, Other Background
The text was updated successfully, but these errors were encountered:
What is the current behavior?
Table functions, including builtin snowpark ones like flatten, raise an exception in tests:
NotImplementedError: [Local Testing] table_function.TableFunctionJoin is not supported.
When I try to patch it, the patched function is passed a normal Column and not a ColumnEmulator with the underlying rows series:Nor can I patch the builtin table function. As far as I can tell, patching functions using
snowflake.snowpark.mock
does not support returning 0, 1, or many rows per input row. But more specifically, when I put a debugger insidepatch_flatten()
it is being passed a normalColumn
and not aColumnEmulator
so I can't interact with the underlying series of rows.What is the desired behavior?
Ideally builtin table functions like flatten have test implementations, but more generally it might be more practical to support patching table functions.
If this is not an existing feature in
snowflake-snowpark-python
. How would this impact/improve non local testing mode?Table functions are a fairly common use case when transforming semi structured data into structured data, so it would make the library more robust.
References, Other Background
The text was updated successfully, but these errors were encountered: