What is the purpose of the 'ANALYZE TABLE' command in Hive?

Answer

To collect statistics about a table for the query optimizer

Explanation

The 'ANALYZE TABLE' command in Hive is used to collect statistics (like number of rows, column distributions) about a table or its partitions. These statistics are crucial for the Hive query optimizer to generate efficient execution plans.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list