AnalyzeTable Unary Command¶
AnalyzeTable is a UnaryCommand (and a Logical Command) for ANALYZE TABLE SQL statement.
Creating Instance¶
AnalyzeTable takes the following to be created:
- Child LogicalPlan
- Partitions
-  noScanflag
AnalyzeTable is created when:
- AstBuilderis requested to parse ANALYZE TABLE statement
Logical Analysis¶
AnalyzeTable is resolved to the following logical runnable commands (by ResolveSessionCatalog logical resolution rule):
Query Planning¶
DataSourceV2Strategy throws an AnalysisException for AnalyzeTables over ResolvedTables:
ANALYZE TABLE is not supported for v2 tables.