<?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 Downloading the query result through rest API in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/downloading-the-query-result-through-rest-api/m-p/120523#M46182</link>
    <description>&lt;P&gt;Hi all i have a specific requirements to download the query result. i have created a table on data bricks using SQL warehouse. I have to fetch the query from a custom UI using data API token. Now I am able to fetch the query, but the problem is what if my table is more than 25 MB then I have to use disposition: external links, so the result I am getting in various chunks and suppose one query result is around 1GB file, then I am getting around 250+ chunks. Now I have to download these 250 files separately, but my requirement is to get only one file. What is the solution so I can get only one file do I need to merge only there is no such other option?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;and yes we have to use only sql warehouse compute compute&lt;/P&gt;</description>
    <pubDate>Thu, 29 May 2025 09:23:31 GMT</pubDate>
    <dc:creator>Datagyan</dc:creator>
    <dc:date>2025-05-29T09:23:31Z</dc:date>
    <item>
      <title>Downloading the query result through rest API</title>
      <link>https://community.databricks.com/t5/data-engineering/downloading-the-query-result-through-rest-api/m-p/120523#M46182</link>
      <description>&lt;P&gt;Hi all i have a specific requirements to download the query result. i have created a table on data bricks using SQL warehouse. I have to fetch the query from a custom UI using data API token. Now I am able to fetch the query, but the problem is what if my table is more than 25 MB then I have to use disposition: external links, so the result I am getting in various chunks and suppose one query result is around 1GB file, then I am getting around 250+ chunks. Now I have to download these 250 files separately, but my requirement is to get only one file. What is the solution so I can get only one file do I need to merge only there is no such other option?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;and yes we have to use only sql warehouse compute compute&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 09:23:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/downloading-the-query-result-through-rest-api/m-p/120523#M46182</guid>
      <dc:creator>Datagyan</dc:creator>
      <dc:date>2025-05-29T09:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading the query result through rest API</title>
      <link>https://community.databricks.com/t5/data-engineering/downloading-the-query-result-through-rest-api/m-p/120616#M46208</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/166397"&gt;@Datagyan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If your query result is larger than 25MB, Databricks automatically uses disposition=EXTERNAL_LINKS, which returns the result in multiple chunked files(external links).Currently, there's no option to get a single file directly from the SQL Warehouse API.&lt;/P&gt;&lt;P&gt;To get the result as a single file, you need to:&lt;BR /&gt;--&amp;gt; Programmatically download all the external links (e.g., using Python), and&lt;BR /&gt;--&amp;gt; Merge them into one final file (CSV, JSON, or Parquet).&lt;/P&gt;&lt;P&gt;Since only SQL Warehouse compute is allowed in this scenario, options like writing to DBFS or cloud storage via notebooks are not applicable.&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 15:03:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/downloading-the-query-result-through-rest-api/m-p/120616#M46208</guid>
      <dc:creator>HariSankar</dc:creator>
      <dc:date>2025-05-30T15:03:54Z</dc:date>
    </item>
  </channel>
</rss>

