<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Help me with the databricks streamlit application related doubt in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/help-me-with-the-databricks-streamlit-application-related-doubt/m-p/141223#M11138</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/112195"&gt;@gokkul&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Your app service principal needs to have a proper permission to write to UC table. You also need to use python databricks sdk to interact with UC object (i.e read/save a table).&lt;/P&gt;&lt;P&gt;You can get some inspiration from following databricks cookbook snippet. Here the app is reading from delta table. If you want to write you just need to use different method from python sdk:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import streamlit as st
from databricks import sql
from databricks.sdk.core import Config


cfg = Config()  # Set the DATABRICKS_HOST environment variable when running locally


@st.cache_resource(ttl="1h") # connection is cached
def get_connection(http_path):
    return sql.connect(
        server_hostname=cfg.host,
        http_path=http_path,
        credentials_provider=lambda: cfg.authenticate,
    )

def read_table(table_name, conn):
    with conn.cursor() as cursor:
        query = f"SELECT * FROM {table_name}"
        cursor.execute(query)
        return cursor.fetchall_arrow().to_pandas()

http_path_input = st.text_input(
    "Enter your Databricks HTTP Path:", placeholder="/sql/1.0/warehouses/xxxxxx"
)

table_name = st.text_input(
    "Specify a Unity Catalog table name:", placeholder="catalog.schema.table"
)

if http_path_input and table_name:
    conn = get_connection(http_path_input)
    df = read_table(table_name, conn)
    st.dataframe(df)&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 05 Dec 2025 08:35:21 GMT</pubDate>
    <dc:creator>szymon_dybczak</dc:creator>
    <dc:date>2025-12-05T08:35:21Z</dc:date>
    <item>
      <title>Help me with the databricks streamlit application related doubt</title>
      <link>https://community.databricks.com/t5/get-started-discussions/help-me-with-the-databricks-streamlit-application-related-doubt/m-p/141205#M11132</link>
      <description>&lt;P&gt;Hi Databricks community ,&lt;/P&gt;&lt;P&gt;Hi I have a doubt regarding databricks streamlit application . I have a databricks streamlit application that takes input values from the user through streamlit UI. Now I want to store these input values in a delta table in Unity catalog . How can I proceed with this ? What are the requirements ? Do I need to&amp;nbsp; give any specific permissions to my databricks application's service principal inorder access the UC ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 03:35:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/help-me-with-the-databricks-streamlit-application-related-doubt/m-p/141205#M11132</guid>
      <dc:creator>gokkul</dc:creator>
      <dc:date>2025-12-05T03:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with the databricks streamlit application related doubt</title>
      <link>https://community.databricks.com/t5/get-started-discussions/help-me-with-the-databricks-streamlit-application-related-doubt/m-p/141223#M11138</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/112195"&gt;@gokkul&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Your app service principal needs to have a proper permission to write to UC table. You also need to use python databricks sdk to interact with UC object (i.e read/save a table).&lt;/P&gt;&lt;P&gt;You can get some inspiration from following databricks cookbook snippet. Here the app is reading from delta table. If you want to write you just need to use different method from python sdk:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import streamlit as st
from databricks import sql
from databricks.sdk.core import Config


cfg = Config()  # Set the DATABRICKS_HOST environment variable when running locally


@st.cache_resource(ttl="1h") # connection is cached
def get_connection(http_path):
    return sql.connect(
        server_hostname=cfg.host,
        http_path=http_path,
        credentials_provider=lambda: cfg.authenticate,
    )

def read_table(table_name, conn):
    with conn.cursor() as cursor:
        query = f"SELECT * FROM {table_name}"
        cursor.execute(query)
        return cursor.fetchall_arrow().to_pandas()

http_path_input = st.text_input(
    "Enter your Databricks HTTP Path:", placeholder="/sql/1.0/warehouses/xxxxxx"
)

table_name = st.text_input(
    "Specify a Unity Catalog table name:", placeholder="catalog.schema.table"
)

if http_path_input and table_name:
    conn = get_connection(http_path_input)
    df = read_table(table_name, conn)
    st.dataframe(df)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 Dec 2025 08:35:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/help-me-with-the-databricks-streamlit-application-related-doubt/m-p/141223#M11138</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-12-05T08:35:21Z</dc:date>
    </item>
  </channel>
</rss>

