<?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 Accessing delta tables using API outside azure (Workiva) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103182#M41354</link>
    <description>&lt;P&gt;I need to access delta tables with API outside azure using in a reporting tool workiva with using the connector. Can someone able to provide the details on how I can achieve it&lt;/P&gt;</description>
    <pubDate>Wed, 25 Dec 2024 16:43:17 GMT</pubDate>
    <dc:creator>Shivaprasad</dc:creator>
    <dc:date>2024-12-25T16:43:17Z</dc:date>
    <item>
      <title>Accessing delta tables using API outside azure (Workiva)</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103182#M41354</link>
      <description>&lt;P&gt;I need to access delta tables with API outside azure using in a reporting tool workiva with using the connector. Can someone able to provide the details on how I can achieve it&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2024 16:43:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103182#M41354</guid>
      <dc:creator>Shivaprasad</dc:creator>
      <dc:date>2024-12-25T16:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing delta tables using API outside azure (Workiva)</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103183#M41355</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I need to access delta tables with API outside azure using in a reporting tool workiva without using the connector. Can someone able to provide the details on how I can achieve it&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2024 17:24:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103183#M41355</guid>
      <dc:creator>Shivaprasad</dc:creator>
      <dc:date>2024-12-25T17:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing delta tables using API outside azure (Workiva)</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103221#M41361</link>
      <description>&lt;P&gt;I need to use a reporting product called Workiva to retrieve delta tables via an API outside of Azure without the requirement for a connection. Could someone please provide me the specifics on how I may accomplish that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2024 09:00:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103221#M41361</guid>
      <dc:creator>john533</dc:creator>
      <dc:date>2024-12-26T09:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing delta tables using API outside azure (Workiva)</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103224#M41364</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/123857"&gt;@Shivaprasad&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Accessing Delta tables in Databricks from external tools or platforms requires using Databricks REST APIs or JDBC/ODBC connectors. Does your platform supports integration of code snippets?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2024 09:42:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103224#M41364</guid>
      <dc:creator>RiyazAliM</dc:creator>
      <dc:date>2024-12-26T09:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing delta tables using API outside azure (Workiva)</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103419#M41434</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/15469"&gt;@RiyazAliM&lt;/a&gt; Thanks. I am thinking of using Databricks REST API's. I need to check on the reporting tool side to see whether it accepts code snippets. I have enabled unity catalog and I am planning to use below code on databricks side, getting&amp;nbsp;&lt;SPAN&gt;ErrorClass=INVALID_PARAMETER_VALUE.LOCATION_OVERLAP] error message.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any suggestion on what needs to be changed. Also what are my options on the Reporting tool end to retrieve table data&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; requests&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; json&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;TOKEN &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;'xxxxxxx'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;my_json &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;SPAN&gt;"statement"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"select * from delta.`abfss://databricks-storage@sa14127e1dv0101.dfs.core.windows.net/catalogs/catalogs/drm/__unitystorage/schemas/a8459dc4-6921-460b-a546-27e5cf370493`"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"warehouse_id"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"33dab3d9caf0e58b"&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;auth &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;SPAN&gt;'Authorization'&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'Bearer &lt;/SPAN&gt;&lt;SPAN&gt;%s&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt; &lt;SPAN&gt;%&lt;/SPAN&gt;&lt;SPAN&gt; TOKEN}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;response &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; requests.&lt;/SPAN&gt;&lt;SPAN&gt;post&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://adb-3007753333762912.12.azuredatabricks.net:443/api/2.0/sql/statements" target="_blank"&gt;https://adb-3007753333762912.12.azuredatabricks.net:443/api/2.0/sql/statements&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;json&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; my_json, &lt;/SPAN&gt;&lt;SPAN&gt;headers&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;auth).&lt;/SPAN&gt;&lt;SPAN&gt;json&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(response)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 28 Dec 2024 20:57:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103419#M41434</guid>
      <dc:creator>Shivaprasad</dc:creator>
      <dc:date>2024-12-28T20:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing delta tables using API outside azure (Workiva)</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103472#M41447</link>
      <description>&lt;P&gt;Looks like&amp;nbsp;&lt;SPAN&gt;Within Workiva Wdata we can use python. I think I can use below code snippet but it does not give table data, Can I know what changes need to be done to retrieve table data&amp;nbsp; &amp;nbsp;-&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;endpoint &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;A href="https://adb-3007753333762912.12.azuredatabricks.net/api/2.1/unity-catalog/tables/catalog.schema.table" target="_blank"&gt;https://adb-3007753333762912.12.azuredatabricks.net/api/2.1/unity-catalog/tables/catalog.schema.table&lt;/A&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;response &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; requests.&lt;/SPAN&gt;&lt;SPAN&gt;get&lt;/SPAN&gt;&lt;SPAN&gt;(endpoint, &lt;/SPAN&gt;&lt;SPAN&gt;verify&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;headers&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;header)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;what changes need to be done to retrieve table data&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2024 20:25:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103472#M41447</guid>
      <dc:creator>Shivaprasad</dc:creator>
      <dc:date>2024-12-29T20:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing delta tables using API outside azure (Workiva)</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103488#M41456</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/123857"&gt;@Shivaprasad&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like the error is associated with the way you're trying to retrieve the data from the Unity Storage location.&lt;/P&gt;&lt;P&gt;As an alternative, let's try to use the 3 level namespace UC has to submit a query and retrieve the data.&lt;/P&gt;&lt;P&gt;e.g: instead of&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;SELECT * FROM delta.`&amp;lt;unity_storage_location&amp;gt;`&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;SELECT * FROM &amp;lt;catalog_name&amp;gt;.&amp;lt;schema_name&amp;gt;.&amp;lt;table_name&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The rest api code snippet looks like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import requests

databricks_instance = "https://&amp;lt;databricks-instance&amp;gt;"

token = "&amp;lt;your_personal_access_token&amp;gt;"

warehouse_id = "&amp;lt;your_warehouse_id&amp;gt;"  
query = "SELECT * FROM &amp;lt;catalog_name&amp;gt;.&amp;lt;schema_name&amp;gt;.&amp;lt;table_name&amp;gt; LIMIT 10"  

url = f"{databricks_instance}/api/2.0/sql/statements"
data = {
    "statement": query,
    "warehouse_id": warehouse_id
}

response = requests.post(url, headers=headers, json=data)

if response.status_code == 200:
    statement_id = response.json()["statement_id"]
    print("Query submitted. Statement ID:", statement_id)
else:
    print("Error:", response.text)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 01:53:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103488#M41456</guid>
      <dc:creator>RiyazAliM</dc:creator>
      <dc:date>2024-12-30T01:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing delta tables using API outside azure (Workiva)</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103509#M41463</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/123857"&gt;@Shivaprasad&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expanding on the code snippet provided above. Once you run the Rest Api code provided above, you will get the statement id.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use this statement_id to get the query results using the same statements api.&lt;BR /&gt;code snippet is as below:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import time

# Replace with your statement ID from the previous step
statement_id = statement_id

url = f"{databricks_instance}/api/2.0/sql/statements/{statement_id}"

while True:
    response = requests.get(url, headers=headers)
    if response.status_code == 200:
        status = response.json()["status"]
        if status['state'] == "SUCCEEDED":
            display("Column Info:", response.json()['manifest']['schema']['columns'])
            display("Query Results:", response.json()["result"]['data_array'])
            break
        elif status['state'] == "FAILED":
            display("Query failed:", response.json())
            break
        else:
            print(f"Query in progress...: {status['state']}")
            time.sleep(5)
    else:
        print("Error:", response.text)
        break&lt;/LI-CODE&gt;&lt;P&gt;The result will look like below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RiyazAli_0-1735544063414.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13769i4A3D083C2592F3BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RiyazAli_0-1735544063414.png" alt="RiyazAli_0-1735544063414.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 07:34:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103509#M41463</guid>
      <dc:creator>RiyazAliM</dc:creator>
      <dc:date>2024-12-30T07:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing delta tables using API outside azure (Workiva)</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103599#M41513</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/15469"&gt;@RiyazAliM&lt;/a&gt;&amp;nbsp; Thanks and appreciate your help&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 17:10:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103599#M41513</guid>
      <dc:creator>Shivap</dc:creator>
      <dc:date>2024-12-30T17:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing delta tables using API outside azure (Workiva)</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103635#M41526</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/123857"&gt;@Shivaprasad&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;If you think the above response answered your question, please mark it as a solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2024 05:18:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/103635#M41526</guid>
      <dc:creator>RiyazAliM</dc:creator>
      <dc:date>2024-12-31T05:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing delta tables using API outside azure (Workiva)</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/104008#M41634</link>
      <description>&lt;P&gt;Sorry. for some reason I don't see the option to mark it as solution&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 23:43:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/104008#M41634</guid>
      <dc:creator>Shivap</dc:creator>
      <dc:date>2025-01-02T23:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing delta tables using API outside azure (Workiva)</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/108737#M43137</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to retrieve delta tables using an API outside of Azure without requiring a connection using a reporting tool named Workiva. I would appreciate it if someone could tell me exactly how to do that.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 10:17:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-delta-tables-using-api-outside-azure-workiva/m-p/108737#M43137</guid>
      <dc:creator>jack533</dc:creator>
      <dc:date>2025-02-04T10:17:15Z</dc:date>
    </item>
  </channel>
</rss>

