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
-
noScan
flag
AnalyzeTable
is created when:
AstBuilder
is 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 AnalyzeTable
s over ResolvedTable
s:
ANALYZE TABLE is not supported for v2 tables.