Skip to content

AnalyzeColumn

AnalyzeColumn is a Command for ANALYZE TABLE FOR COLUMNS SQL statement.

Creating Instance

AnalyzeColumn takes the following to be created:

AnalyzeColumn requires that either the column names or allColumns flag is defined (as mutually exclusive).

AnalyzeColumn is created when:

Logical Analysis

AnalyzeColumn is resolved to AnalyzeColumnCommand logical command (by ResolveSessionCatalog logical resolution rule).

Query Planning

DataSourceV2Strategy throws an AnalysisException for AnalyzeColumns over ResolvedTables:

ANALYZE TABLE is not supported for v2 tables.

Last update: 2021-05-13