I have created stored procedure in snowflake which is executed fine in snowflake UI and also from server by using snowsql. Now I want to execute procedure from python program, I tried to execute from python, here are the steps that I have followed:
- establish the connection to snowflake ( successfully able to connect.)
cs = ctx.cursor()
- Used appropriate role,warehouse,database and schema.
- tried to execute procedure like this:
cs.execute("call test_proc('value1', 'value2')")
x = cs.fetchall()
print(x)
But getting an erorr:
snowflake.connector.errors.ProgrammingError: 002140 (42601): SQL compilation error: Unknown function test_proc
Can you please help me to resolve this problem.
Thanks,