【发布时间】:2021-07-12 13:04:09
【问题描述】:
我已经在雪花中创建了存储过程,该存储过程在雪花 UI 中以及使用 snowsql 从服务器中执行得很好。现在我想从 python 程序执行程序,我尝试从 python 执行,以下是我遵循的步骤:
- 建立与雪花的连接(成功连接。)
cs = ctx.cursor()
- 使用了适当的角色、仓库、数据库和架构。
- 试图执行这样的程序:
cs.execute("call test_proc('value1', 'value2')")
x = cs.fetchall()
print(x)
但出现错误:
snowflake.connector.errors.ProgrammingError: 002140 (42601): SQL 编译错误:未知函数test_proc
你能帮我解决这个问题吗?
谢谢,
【问题讨论】:
标签: python-3.x stored-procedures snowflake-cloud-data-platform