<?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: Error on ANALYZE TABLE [...] COMPUTE STATISTICS FOR COLUMNS [...] in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/error-on-analyze-table-compute-statistics-for-columns/m-p/78391#M35513</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;, thanks for the detailed suggestions.&lt;/P&gt;&lt;P&gt;1. Running &lt;EM&gt;SHOW COLUMN STATS&lt;/EM&gt;&amp;nbsp;yields the following error:&lt;/P&gt;&lt;P&gt;[PARSE_SYNTAX_ERROR] Syntax error at or near 'CHECK'. SQLSTATE: 42601 line 1, pos 0&lt;/P&gt;&lt;P&gt;== SQL ==&lt;BR /&gt;CHECK COLUMN STATS&amp;nbsp;&amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table&amp;gt;&amp;nbsp;&lt;BR /&gt;^^^&lt;/P&gt;&lt;P&gt;Ran &lt;EM&gt;DESCRIBE DETAIL&amp;nbsp;&amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table&amp;gt;&lt;/EM&gt; successfully, and it indicates no column stats are currently being collected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leungi_0-1720714440270.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/9508i58295E7C1A2AB014/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="leungi_0-1720714440270.png" alt="leungi_0-1720714440270.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. Ran &lt;EM&gt;ANALYZE TABLE &amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table&amp;gt; COMPUTE STATISTICS FOR COLUMN my_col_1;&lt;/EM&gt;&amp;nbsp;for a single column, and faced the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any further troubleshooting tips are much appreciated!&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2024 16:19:46 GMT</pubDate>
    <dc:creator>leungi</dc:creator>
    <dc:date>2024-07-11T16:19:46Z</dc:date>
    <item>
      <title>Error on ANALYZE TABLE [...] COMPUTE STATISTICS FOR COLUMNS [...]</title>
      <link>https://community.databricks.com/t5/data-engineering/error-on-analyze-table-compute-statistics-for-columns/m-p/77487#M35439</link>
      <description>&lt;P&gt;End goal is to apply OPTIMIZE and ZORDER table.&lt;/P&gt;&lt;P&gt;However, one of the columns to be ZORDER doesn't have stats collected.&lt;/P&gt;&lt;P&gt;Running ANALYZE generates the error below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ANALYZE&lt;/SPAN&gt; &lt;SPAN&gt;TABLE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COMPUTE&lt;/SPAN&gt; &lt;SPAN&gt;STATISTICS&lt;/SPAN&gt; &lt;SPAN&gt;FOR&lt;/SPAN&gt; &lt;SPAN&gt;COLUMNS&lt;/SPAN&gt;&lt;SPAN&gt; my_col_1, my_col_2;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Error&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;[INTERNAL_ERROR] Eagerly executed command failed. You hit a bug in Spark or the Spark plugins you use. Please, report this bug to the corresponding communities or vendors, and provide the full stack trace. SQLSTATE: XX000&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Jul 2024 14:51:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-on-analyze-table-compute-statistics-for-columns/m-p/77487#M35439</guid>
      <dc:creator>leungi</dc:creator>
      <dc:date>2024-07-09T14:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error on ANALYZE TABLE [...] COMPUTE STATISTICS FOR COLUMNS [...]</title>
      <link>https://community.databricks.com/t5/data-engineering/error-on-analyze-table-compute-statistics-for-columns/m-p/78391#M35513</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;, thanks for the detailed suggestions.&lt;/P&gt;&lt;P&gt;1. Running &lt;EM&gt;SHOW COLUMN STATS&lt;/EM&gt;&amp;nbsp;yields the following error:&lt;/P&gt;&lt;P&gt;[PARSE_SYNTAX_ERROR] Syntax error at or near 'CHECK'. SQLSTATE: 42601 line 1, pos 0&lt;/P&gt;&lt;P&gt;== SQL ==&lt;BR /&gt;CHECK COLUMN STATS&amp;nbsp;&amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table&amp;gt;&amp;nbsp;&lt;BR /&gt;^^^&lt;/P&gt;&lt;P&gt;Ran &lt;EM&gt;DESCRIBE DETAIL&amp;nbsp;&amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table&amp;gt;&lt;/EM&gt; successfully, and it indicates no column stats are currently being collected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leungi_0-1720714440270.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/9508i58295E7C1A2AB014/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="leungi_0-1720714440270.png" alt="leungi_0-1720714440270.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. Ran &lt;EM&gt;ANALYZE TABLE &amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table&amp;gt; COMPUTE STATISTICS FOR COLUMN my_col_1;&lt;/EM&gt;&amp;nbsp;for a single column, and faced the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any further troubleshooting tips are much appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 16:19:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-on-analyze-table-compute-statistics-for-columns/m-p/78391#M35513</guid>
      <dc:creator>leungi</dc:creator>
      <dc:date>2024-07-11T16:19:46Z</dc:date>
    </item>
  </channel>
</rss>

