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
Related questions
What is a 'DataFrame' in Spark?
View question →
What is the default YARN scheduler if not explicitly configured?
View question →
Which of the following is an example of a NoSQL database that can integrate with Hadoop?
View question →
What is the purpose of the '--where' clause in Sqoop import?
View question →
Which Flume Sink is used to write events to HDFS?
View question →
Which of the following is a common tool for workflow orchestration in Hadoop?
View question →