<?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 Is there a (request-) size limit for the Databricks Rest Api Sql statements? in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/is-there-a-request-size-limit-for-the-databricks-rest-api-sql/m-p/57896#M7119</link>
    <description>&lt;P&gt;When inserting rows through the Sql Api (/api/2.0/sql/statements/), when more than a certain number of records (about 25 records with 8 small columns) are included in the statement, the call fails with the error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"The request could not be processed by the warehouse."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Including fewer records (less than 25 in this case) will cause the call to succeed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"statement": "INSERT OVERWRITE TableName (Columns....) VALUES 
    (Named markers record1 for 8 columns...),
    (Named markers record2 for 8 columns...),
    (Named markers record3 for 8 columns...),
    etc. etc. etc. for more records
"wait_timeout": "10s",
"on_wait_timeout": "CONTINUE",
"parameters": [
{
    "name": "Marker",
    "type": "LONG",
    "value": 1705680165682
},
etc. etc. etc. all parameters for the named markers for all records.
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is therefore, what limit am I seemingly hitting here? Note that I am obviously referring to the &lt;EM&gt;request&lt;/EM&gt;, not the &lt;EM&gt;response&lt;/EM&gt;, for which the limits are documented. The total size of the request is around 30 - 40 kb.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2024 16:38:44 GMT</pubDate>
    <dc:creator>TheIceBrick</dc:creator>
    <dc:date>2024-01-19T16:38:44Z</dc:date>
    <item>
      <title>Is there a (request-) size limit for the Databricks Rest Api Sql statements?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/is-there-a-request-size-limit-for-the-databricks-rest-api-sql/m-p/57896#M7119</link>
      <description>&lt;P&gt;When inserting rows through the Sql Api (/api/2.0/sql/statements/), when more than a certain number of records (about 25 records with 8 small columns) are included in the statement, the call fails with the error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"The request could not be processed by the warehouse."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Including fewer records (less than 25 in this case) will cause the call to succeed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"statement": "INSERT OVERWRITE TableName (Columns....) VALUES 
    (Named markers record1 for 8 columns...),
    (Named markers record2 for 8 columns...),
    (Named markers record3 for 8 columns...),
    etc. etc. etc. for more records
"wait_timeout": "10s",
"on_wait_timeout": "CONTINUE",
"parameters": [
{
    "name": "Marker",
    "type": "LONG",
    "value": 1705680165682
},
etc. etc. etc. all parameters for the named markers for all records.
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is therefore, what limit am I seemingly hitting here? Note that I am obviously referring to the &lt;EM&gt;request&lt;/EM&gt;, not the &lt;EM&gt;response&lt;/EM&gt;, for which the limits are documented. The total size of the request is around 30 - 40 kb.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 16:38:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/is-there-a-request-size-limit-for-the-databricks-rest-api-sql/m-p/57896#M7119</guid>
      <dc:creator>TheIceBrick</dc:creator>
      <dc:date>2024-01-19T16:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a (request-) size limit for the Databricks Rest Api Sql statements?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/is-there-a-request-size-limit-for-the-databricks-rest-api-sql/m-p/57923#M7120</link>
      <description>&lt;P&gt;Hi, There are rate limits refer:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/resources/limits.html#limits-api-rate-limits" target="_blank"&gt;https://docs.databricks.com/en/resources/limits.html#limits-api-rate-limits&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, there is query text size limit in statement execution, refer:&amp;nbsp;&lt;A href="https://docs.databricks.com/api/workspace/statementexecution" target="_blank"&gt;https://docs.databricks.com/api/workspace/statementexecution&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Let us know if this helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jan 2024 04:18:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/is-there-a-request-size-limit-for-the-databricks-rest-api-sql/m-p/57923#M7120</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2024-01-20T04:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a (request-) size limit for the Databricks Rest Api Sql statements?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/is-there-a-request-size-limit-for-the-databricks-rest-api-sql/m-p/58113#M7121</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078"&gt;@Debayan&lt;/a&gt;&amp;nbsp;thanks for your response. I am not hitting the rate limits and the query text is only around 30kb, not anywhere near the 16MiB mentioned in the article.&lt;/P&gt;&lt;P&gt;Any other suggestions are certainly welcome!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 11:54:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/is-there-a-request-size-limit-for-the-databricks-rest-api-sql/m-p/58113#M7121</guid>
      <dc:creator>TheIceBrick</dc:creator>
      <dc:date>2024-01-22T11:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a (request-) size limit for the Databricks Rest Api Sql statements?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/is-there-a-request-size-limit-for-the-databricks-rest-api-sql/m-p/66759#M7122</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/98481"&gt;@TheIceBrick&lt;/a&gt;&amp;nbsp;did you find out anything else about this?&lt;BR /&gt;I am experiencing exactly the same, I can insert up to 35 rows but break at about 50 rows.&lt;BR /&gt;The payload size is 42KB, I am passing parameters for each row.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078"&gt;@Debayan&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;This is no where near the 16MiB / 25 MiB limits in the documentation.&lt;BR /&gt;&lt;BR /&gt;One more aspect is that the error doesn't appear under the "Query History" view for the warehouse as it does for any other issues, like bad sql syntax for example.&lt;/P&gt;&lt;P&gt;Effectively this case errors out before it becomes a query in the warehouse.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Is there any other place to check for lower level warehouse errors?&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 15:01:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/is-there-a-request-size-limit-for-the-databricks-rest-api-sql/m-p/66759#M7122</guid>
      <dc:creator>ChrisCkx</dc:creator>
      <dc:date>2024-04-19T15:01:58Z</dc:date>
    </item>
  </channel>
</rss>

