Skip to content
Advertisement

‘pyarrow’ is not installed – Snowpark stored procedure with Python

I have created this basic stored procedure to query a Snowflake table based on a customer id:

JavaScript

It works fine but I would like my sproc to return a JSON object for the whole result set. I modified it thusly:

JavaScript

It compiles without errors but fails at runtime with this error:

JavaScript

What am I missing here?

Advertisement

Answer

You need to ask for pyarrow as a package:

JavaScript

But to get these packages, someone in your org will need to approve the Anaconda terms of service, or you’ll get the following error:

JavaScript

Someone with ORGADMIN role can follow these steps:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement