Skip to content

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:

AnalyzeTable is created when:

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.