<?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: API Query in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/api-query/m-p/49485#M1021</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/91381"&gt;@Yahya24&lt;/a&gt;&amp;nbsp;can you please remove preview in query, they are not in preview any more "&lt;SPAN&gt;/api/2.0/sql/statements/", you should see json response, can you please check drop down menu and change to json, some times it may be setted into text, but usual response in json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="karthik_p_0-1697646136922.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/4499i14A4A574E4AC1340/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="karthik_p_0-1697646136922.png" alt="karthik_p_0-1697646136922.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2023 16:22:56 GMT</pubDate>
    <dc:creator>karthik_p</dc:creator>
    <dc:date>2023-10-18T16:22:56Z</dc:date>
    <item>
      <title>API Query</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/api-query/m-p/49387#M1020</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I created a sql warehouse (cluster size = 2X-Small) and I wanted to use it to execute a query using the sql query api:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- url : &lt;A href="https://databricks-host/api/2.0/preview/sql/statements" target="_blank"&gt;https://databricks-host/api/2.0/preview/sql/statements&lt;/A&gt;&lt;BR /&gt;- params = {&lt;BR /&gt;'warehouse_id': 'warehouse_id',&lt;BR /&gt;'statement': 'SELECT * FROM db1.table1;',&lt;BR /&gt;'wait_timeout': '0s'&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I got a response with a status 200 but with text in xml.&lt;/P&gt;&lt;P&gt;On the other hand when I use the queries api &lt;A href="https://databricks-host/api/2.0/preview/sql/queries" target="_blank"&gt;https://databricks-host/api/2.0/preview/sql/queries&lt;/A&gt; it works well, I have a json with all my queries already defined.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 14:42:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/api-query/m-p/49387#M1020</guid>
      <dc:creator>Yahya24</dc:creator>
      <dc:date>2023-10-17T14:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: API Query</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/api-query/m-p/49485#M1021</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/91381"&gt;@Yahya24&lt;/a&gt;&amp;nbsp;can you please remove preview in query, they are not in preview any more "&lt;SPAN&gt;/api/2.0/sql/statements/", you should see json response, can you please check drop down menu and change to json, some times it may be setted into text, but usual response in json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="karthik_p_0-1697646136922.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/4499i14A4A574E4AC1340/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="karthik_p_0-1697646136922.png" alt="karthik_p_0-1697646136922.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 16:22:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/api-query/m-p/49485#M1021</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-10-18T16:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: API Query</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/api-query/m-p/49563#M1025</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/72939"&gt;@karthik_p&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;My problem is solved, I removed "preview" but the real problem comes from the type of the API, I use it as GET while it is POST.&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 07:22:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/api-query/m-p/49563#M1025</guid>
      <dc:creator>Yahya24</dc:creator>
      <dc:date>2023-10-20T07:22:45Z</dc:date>
    </item>
  </channel>
</rss>

