<?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: JDBC Connection query row limit in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/jdbc-connection-query-row-limit/m-p/112529#M44242</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/153294"&gt;@glevin&lt;/a&gt;&amp;nbsp;, No problem, we can try a different approach. Can you please try the fetchsize option as below?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;jdbc:databricks://adb-xxxx.xx.azuredatabricks.net:443;httpPath=sql/protocolv1/o/xxxx/xxxx;AuthMech=11;Auth_Flow=1;OAuth2ClientId=xxxx;OAuth2Secret=xxxx;ConnCatalog=ndp_uat;ConnSchema=appian;EnableArrow=0;fetchsize=5000;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Mar 2025 23:41:21 GMT</pubDate>
    <dc:creator>KaranamS</dc:creator>
    <dc:date>2025-03-13T23:41:21Z</dc:date>
    <item>
      <title>JDBC Connection query row limit</title>
      <link>https://community.databricks.com/t5/data-engineering/jdbc-connection-query-row-limit/m-p/112485#M44227</link>
      <description>&lt;P&gt;Anyone know how to increase the amount of rows returned in a JDBC query? Currently we're receiving 1000 rows per query.&lt;/P&gt;&lt;P&gt;Have tried adding a LIMIT 5000 to the end of the query, but no luck.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 15:12:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jdbc-connection-query-row-limit/m-p/112485#M44227</guid>
      <dc:creator>glevin</dc:creator>
      <dc:date>2025-03-13T15:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Connection query row limit</title>
      <link>https://community.databricks.com/t5/data-engineering/jdbc-connection-query-row-limit/m-p/112508#M44235</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/153294"&gt;@glevin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;By default the limit is set to 1000 rows for JDBC queries. You can try specifying the maxRows parameter in the JDBC url to 5000. Example below&lt;/P&gt;&lt;P&gt;jdbc:spark://&amp;lt;databricks-host&amp;gt;:443/default;httpPath=&amp;lt;http-path&amp;gt;;AuthMech=3;maxRows=5000;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 17:07:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jdbc-connection-query-row-limit/m-p/112508#M44235</guid>
      <dc:creator>KaranamS</dc:creator>
      <dc:date>2025-03-13T17:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Connection query row limit</title>
      <link>https://community.databricks.com/t5/data-engineering/jdbc-connection-query-row-limit/m-p/112511#M44238</link>
      <description>&lt;P&gt;Thanks for your response! I just tried your suggestion, but it's still returning 1000 rows.&lt;/P&gt;&lt;P&gt;Here's my full connection string:&lt;/P&gt;&lt;P&gt;jdbc:databricks://adb-xxxx.xx.azuredatabricks.net:443;httpPath=sql/protocolv1/o/xxxx/xxxx;AuthMech=11;Auth_Flow=1;OAuth2ClientId=xxxx;OAuth2Secret=xxxx;ConnCatalog=ndp_uat;ConnSchema=appian;EnableArrow=0;maxRows=5000;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 17:17:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jdbc-connection-query-row-limit/m-p/112511#M44238</guid>
      <dc:creator>glevin</dc:creator>
      <dc:date>2025-03-13T17:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Connection query row limit</title>
      <link>https://community.databricks.com/t5/data-engineering/jdbc-connection-query-row-limit/m-p/112529#M44242</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/153294"&gt;@glevin&lt;/a&gt;&amp;nbsp;, No problem, we can try a different approach. Can you please try the fetchsize option as below?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;jdbc:databricks://adb-xxxx.xx.azuredatabricks.net:443;httpPath=sql/protocolv1/o/xxxx/xxxx;AuthMech=11;Auth_Flow=1;OAuth2ClientId=xxxx;OAuth2Secret=xxxx;ConnCatalog=ndp_uat;ConnSchema=appian;EnableArrow=0;fetchsize=5000;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 23:41:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jdbc-connection-query-row-limit/m-p/112529#M44242</guid>
      <dc:creator>KaranamS</dc:creator>
      <dc:date>2025-03-13T23:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Connection query row limit</title>
      <link>https://community.databricks.com/t5/data-engineering/jdbc-connection-query-row-limit/m-p/112557#M44251</link>
      <description>&lt;P&gt;Just tried, same issue, still returns 1000 rows&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 08:47:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jdbc-connection-query-row-limit/m-p/112557#M44251</guid>
      <dc:creator>glevin</dc:creator>
      <dc:date>2025-03-14T08:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Connection query row limit</title>
      <link>https://community.databricks.com/t5/data-engineering/jdbc-connection-query-row-limit/m-p/112638#M44277</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/153294"&gt;@glevin&lt;/a&gt;&amp;nbsp;, That is unfortunate. Here are few other options you could try&lt;/P&gt;&lt;P&gt;1. Please ensure you are using latest version of the JDBC driver&lt;/P&gt;&lt;P&gt;2. Try setting the fetch size before the query execution instead of the url as below&lt;/P&gt;&lt;P&gt;SET spark.databricks.jdbc.fetchsize = 5000;&lt;BR /&gt;SELECT * FROM my_table;&lt;/P&gt;&lt;P&gt;3. If you are open to using Rest API, it would help in getting all the records.&lt;/P&gt;&lt;P&gt;Reference links for API:&amp;nbsp;&lt;A href="https://docs.databricks.com/api/workspace/introduction" target="_blank"&gt;https://docs.databricks.com/api/workspace/introduction&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/api/workspace/statementexecution/executestatement" target="_blank"&gt;https://docs.databricks.com/api/workspace/statementexecution/executestatement&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 19:31:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jdbc-connection-query-row-limit/m-p/112638#M44277</guid>
      <dc:creator>KaranamS</dc:creator>
      <dc:date>2025-03-14T19:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Connection query row limit</title>
      <link>https://community.databricks.com/t5/data-engineering/jdbc-connection-query-row-limit/m-p/112689#M44287</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/153294"&gt;@glevin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Can I check what is your data source (Azure SQL, Oracle, MySQL etc.), may be the driver of your source is just picking the default fetch value?&lt;/P&gt;&lt;P&gt;Can you share your profiler output which shows, it's returning 1000 records not 5K as desired?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Mar 2025 14:37:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jdbc-connection-query-row-limit/m-p/112689#M44287</guid>
      <dc:creator>SantoshJoshi</dc:creator>
      <dc:date>2025-03-15T14:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Connection query row limit</title>
      <link>https://community.databricks.com/t5/data-engineering/jdbc-connection-query-row-limit/m-p/113262#M44486</link>
      <description>&lt;P&gt;Thanks all for your help.&lt;BR /&gt;Looks like the bottleneck is the tool I'm using the make the connection (Appian). It limits JDBC responses to 1000 rows.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 09:04:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jdbc-connection-query-row-limit/m-p/113262#M44486</guid>
      <dc:creator>glevin</dc:creator>
      <dc:date>2025-03-21T09:04:02Z</dc:date>
    </item>
  </channel>
</rss>

