个人技术分享

HiveMetastore 背后的存储
  • select * from DBS;

在这里插入图片描述

  • select * from TBLS;

在这里插入图片描述

select * from TABLE_PARAMS;
在这里插入图片描述

  • 查找出没有 totalSize stats 的table
SELECT DBS.NAME,t.TBL_NAME from DBS inner join (select DB_ID,TBL_NAME from TBLS where TBLS.TBL_ID not in(select TBL_ID from TABLE_PARAMS  where PARAM_KEY = 'totalSize')) t on DBS.DB_ID=t.DB_ID;