admin管理员组文章数量:1417408
I am new to Snowflake native app development and I am really confused on various details that I should start with building the Snowflake native app.
The use case is really simple I would like the consumer to choose the DB, SCHEMA in the UI and an API call that lists a few items in the UI and on selecting an item and clicking on Save should create a table in the chosen DB - SCHEMA and import the data from the API to the table.
Similar app - Snowflake Connector for Servicenow
But I am facing a lot of issues in building this:
1. I am not able to list all databases from the context of the native app:
I am using the following code to fetch the databases, using this code it is showing only those databases within the context of the app.
`database_df = session.sql("SHOW DATABASES;").collect() `
I tried giving privileges USAGE inside manifest.yml but not able to fetch the database list.
2. I am confused on when to use the PROCEDURE UDFs in Snowflake as I think with session.sql(query) in Streamlit itself I will be able to get the data and execute the commands. Please correct me if I am wrong.
3. Do we have any related examples of using an API to fetch the data in a native app using Streamlit in Snowflake. Because developing something with no context is getting me too frustrated specifically when developing this with little knowledge on what to do with native apps.
I have tried using the privileges in the manifest.yml
file and it didn't work I am getting the databases within the app context listed not all the databases of the account.
I am not sure how to start as in totally confused with REFERENCES, PRIVILEGES, SCHEMA as well.
Any sort of help to any of the questions or any guidance to this will be very much appreciated. If there is some course to learn native app development that would also help.
本文标签: Snowflake native app and UI using StreamlitStack Overflow
版权声明:本文标题:Snowflake native app and UI using Streamlit - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745264737a2650531.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论