SNOW-1454377: Snowflake Native Apps Stored Procedure fails to execute or return table when called from Task #1695
Labels
bug
Something isn't working
status-triage_done
Initial triage done, will be further handled by the driver team
What version of Python are you using?
Python 3.11
What operating system and processor architecture are you using?
The environment of the Stored Procedure implemented within the Snowflake Native Apps
What are the component versions in the environment (
pip freeze
)?The Stored Procedure is executed within a Snowflake Native App environment. The specific versions of the installed packages are not directly accessible within the Native App context.
What did you do?
I am attempting to execute a Stored Procedure implemented within a Snowflake Native App via a Snowpark Python Task. The Stored Procedure is designed to return a table, but it fails to execute when called from the Task.
Steps to Reproduce:
What did you expect to see?
I expected the Task to successfully call the Stored Procedure and retrieve the resulting table.
What happened instead?
The Task fails with an error indicating that the Stored Procedure could not be executed. Additionally, attempting to retrieve the results using
result_scan
fails, suggesting that the SYSTEM user (used by Tasks) does not have permission to access the results within the Native App context.It seems that the execution of the procedure is failing when trying to run the following code:
snowpark-python/src/snowflake/snowpark/_internal/server_connection.py
Line 452 in d640a36
Additional Information:
Request:
Please investigate and resolve this issue to enable the successful execution of Stored Procedures within Snowflake Native Apps when called from Snowpark Tasks, especially when those procedures return tables. Additionally, please address the permissions issue related to result retrieval to ensure seamless integration between these components.
The text was updated successfully, but these errors were encountered: