<?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 Query text truncated for queries longer than 153,596 characters in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/query-text-truncated-for-queries-longer-than-153-596-characters/m-p/106551#M42517</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using the `&lt;SPAN&gt;query_history.list`&lt;/SPAN&gt; function of the python SDK workspace client the queries that have more than&amp;nbsp;153,596 characters are truncated.&lt;/P&gt;&lt;P&gt;I could not find anywhere in the documentation this limit so I wanted to know if this is documented somewhere and if it is configurable.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Fede&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2025 21:26:05 GMT</pubDate>
    <dc:creator>mangosta</dc:creator>
    <dc:date>2025-01-21T21:26:05Z</dc:date>
    <item>
      <title>Query text truncated for queries longer than 153,596 characters</title>
      <link>https://community.databricks.com/t5/data-engineering/query-text-truncated-for-queries-longer-than-153-596-characters/m-p/106551#M42517</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using the `&lt;SPAN&gt;query_history.list`&lt;/SPAN&gt; function of the python SDK workspace client the queries that have more than&amp;nbsp;153,596 characters are truncated.&lt;/P&gt;&lt;P&gt;I could not find anywhere in the documentation this limit so I wanted to know if this is documented somewhere and if it is configurable.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Fede&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 21:26:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/query-text-truncated-for-queries-longer-than-153-596-characters/m-p/106551#M42517</guid>
      <dc:creator>mangosta</dc:creator>
      <dc:date>2025-01-21T21:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Query text truncated for queries longer than 153,596 characters</title>
      <link>https://community.databricks.com/t5/data-engineering/query-text-truncated-for-queries-longer-than-153-596-characters/m-p/106692#M42551</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/145118"&gt;@mangosta&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Our 'Notebook outputs and results' Document references the limit of truncated query rows at 60,000 (ref:&amp;nbsp;&lt;A href="https://docs.gcp.databricks.com/en/notebooks/notebook-outputs.html#:~:text=If%20the%20data%20returned%20is%20truncated" target="_blank"&gt;https://docs.gcp.databricks.com/en/notebooks/notebook-outputs.html#:~:text=If%20the%20data%20returned%20is%20truncated&lt;/A&gt;), but this seems to be the only document mentioning a limit. I hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 17:21:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/query-text-truncated-for-queries-longer-than-153-596-characters/m-p/106692#M42551</guid>
      <dc:creator>Miguel_Suarez</dc:creator>
      <dc:date>2025-01-22T17:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Query text truncated for queries longer than 153,596 characters</title>
      <link>https://community.databricks.com/t5/data-engineering/query-text-truncated-for-queries-longer-than-153-596-characters/m-p/106694#M42553</link>
      <description>&lt;P&gt;Hi Miguel,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply but I am referring to the length of the query, not the returned rows. When I use the ListQueries API '&lt;SPAN&gt;/api/2.0/sql/queries' the query text appears to be truncated if the queries are longer than `153,596` characters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I want to know if that is documented somewhere and if there is any setting to change it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Fede&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 17:32:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/query-text-truncated-for-queries-longer-than-153-596-characters/m-p/106694#M42553</guid>
      <dc:creator>mangosta</dc:creator>
      <dc:date>2025-01-22T17:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Query text truncated for queries longer than 153,596 characters</title>
      <link>https://community.databricks.com/t5/data-engineering/query-text-truncated-for-queries-longer-than-153-596-characters/m-p/106863#M42616</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/145118"&gt;@mangosta&lt;/a&gt;&amp;nbsp;, I did some testing internally and was able to replicate the behavior you described.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The query text limit is a limitation not of the SDK or the API, but rather of the backing system table `system.query.history`. More information on this system table can be seen in the&amp;nbsp;&lt;A href="https://docs.databricks.com/en/admin/system-tables/query-history.html" target="_self"&gt;Query History System Table.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There is a limit imposed on the query text size due to storage limitations which maps to the System table column `statement_text`. Due to differing compression characteristics of the query text, there is no guarantee that the limit will always be&amp;nbsp;153,596.&lt;/P&gt;
&lt;P&gt;I have requested internally that we update the docs on this&amp;nbsp;`system.query.history` system table to clarify this.&lt;/P&gt;
&lt;P&gt;Thanks for your question.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 23:50:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/query-text-truncated-for-queries-longer-than-153-596-characters/m-p/106863#M42616</guid>
      <dc:creator>brockb</dc:creator>
      <dc:date>2025-01-23T23:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Query text truncated for queries longer than 153,596 characters</title>
      <link>https://community.databricks.com/t5/data-engineering/query-text-truncated-for-queries-longer-than-153-596-characters/m-p/106866#M42617</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/88135"&gt;@brockb&lt;/a&gt;&amp;nbsp;! Please let me know when the documentation related to the Query History System Table is updated so I can get all the information and we can plan on our side how to address the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fede&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 01:10:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/query-text-truncated-for-queries-longer-than-153-596-characters/m-p/106866#M42617</guid>
      <dc:creator>mangosta</dc:creator>
      <dc:date>2025-01-24T01:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Query text truncated for queries longer than 153,596 characters</title>
      <link>https://community.databricks.com/t5/data-engineering/query-text-truncated-for-queries-longer-than-153-596-characters/m-p/109010#M43201</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/145118"&gt;@mangosta&lt;/a&gt;&amp;nbsp;, the System Tables docs have been updated with additional context on the `statement_text` here:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/admin/system-tables/query-history.html#using-the-query-history-table" target="_blank"&gt;https://docs.databricks.com/en/admin/system-tables/query-history.html#using-the-query-history-table&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks again for letting us know.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 17:51:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/query-text-truncated-for-queries-longer-than-153-596-characters/m-p/109010#M43201</guid>
      <dc:creator>brockb</dc:creator>
      <dc:date>2025-02-05T17:51:37Z</dc:date>
    </item>
  </channel>
</rss>

