Error on ANALYZE TABLE [...] COMPUTE STATISTICS FOR COLUMNS [...]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 07:51 AM
End goal is to apply OPTIMIZE and ZORDER table.
However, one of the columns to be ZORDER doesn't have stats collected.
Running ANALYZE generates the error below.
Query
- Labels:
-
Spark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2024 09:17 AM - edited 07-11-2024 09:19 AM
@Retired_mod , thanks for the detailed suggestions.
1. Running SHOW COLUMN STATS yields the following error:
[PARSE_SYNTAX_ERROR] Syntax error at or near 'CHECK'. SQLSTATE: 42601 line 1, pos 0
== SQL ==
CHECK COLUMN STATS <catalog>.<schema>.<table>
^^^
Ran DESCRIBE DETAIL <catalog>.<schema>.<table> successfully, and it indicates no column stats are currently being collected.
3. Ran ANALYZE TABLE <catalog>.<schema>.<table> COMPUTE STATISTICS FOR COLUMN my_col_1; for a single column, and faced the same error.
Any further troubleshooting tips are much appreciated!

