Skip to main content
akapratwar
Bronze ⭐️⭐️⭐️
Sep 29, 2017 3:33 PM UTC

After inserting into table Hive Metastore is showing invalid results

  • Oct 5, 2026 9:17 AM UTC
  • 0 replies
  • 1704 views
  • Translate All

PROBLEM: Hive metastore isn’t updating for tables after insert into the table. This issue is observed with improper ‘numRows’ value with the describle formatted <tb_name>

RESOLUTION: Hive stats are autogathered properly till an 'analyze table [tablename] compute statistics for columns' is run. Then it does not auto-update the stats till the command is run again. This is due to a known issue

https://issues.apache.org/jira/browse/HIVE-12661 and has been fixed in HDP-2.5.0