SS
Size: a a a
SS
АЖ
SS
АЖ
SS
АЖ
TT
SS
АЖ
SS
АЖ
MB
MB
TT
TT
А
hive.TBLS t \
JOIN hive.DBS d on d.DB_ID = t.DB_ID \
JOIN hive.SDS s ON t.SD_ID = s.SD_ID \
JOIN hive.COLUMNS_V2 c ON s.CD_ID = c.CD_ID \
left join hive.PARTITION_KEYS p on t.TBL_ID = p.TBL_ID \
left join hive.TABLE_PARAMS tp on t.TBL_ID = tp.TBL_ID AND tp.param_key ='numRows' \
left join hive.TABLE_PARAMS bf on t.TBL_ID = bf.TBL_ID AND bf.param_key ='orc.bloom.filter.columns' \
left join ( \
select pr.TBL_ID, SUM(ppr.param_value) as rows \
from hive.PARTITIONS pr \
join hive.PARTITION_PARAMS ppr on pr.PART_ID = ppr.PART_ID \
WHERE ppr.param_key ='numRows' \
group by pr.TBL_ID \
) tpr on tpr.TBL_ID = t.TBL_ID \
left join ( select b.SD_ID, group_concat(b.BUCKET_COL_NAME ORDER BY b.INTEGER_IDX ASC) as bucket_cols from hive.BUCKETING_COLS b group by b.SD_ID ) bc on bc.SD_ID = t.SD_ID \
left join ( select cs.SD_ID, group_concat(cs.column_name ORDER BY cs.INTEGER_IDX ASC) as sort_cols from hive.SORT_COLS cs group by cs.SD_ID ) sc on sc.SD_ID = t.SD_ID \
SS
hive.TBLS t \
JOIN hive.DBS d on d.DB_ID = t.DB_ID \
JOIN hive.SDS s ON t.SD_ID = s.SD_ID \
JOIN hive.COLUMNS_V2 c ON s.CD_ID = c.CD_ID \
left join hive.PARTITION_KEYS p on t.TBL_ID = p.TBL_ID \
left join hive.TABLE_PARAMS tp on t.TBL_ID = tp.TBL_ID AND tp.param_key ='numRows' \
left join hive.TABLE_PARAMS bf on t.TBL_ID = bf.TBL_ID AND bf.param_key ='orc.bloom.filter.columns' \
left join ( \
select pr.TBL_ID, SUM(ppr.param_value) as rows \
from hive.PARTITIONS pr \
join hive.PARTITION_PARAMS ppr on pr.PART_ID = ppr.PART_ID \
WHERE ppr.param_key ='numRows' \
group by pr.TBL_ID \
) tpr on tpr.TBL_ID = t.TBL_ID \
left join ( select b.SD_ID, group_concat(b.BUCKET_COL_NAME ORDER BY b.INTEGER_IDX ASC) as bucket_cols from hive.BUCKETING_COLS b group by b.SD_ID ) bc on bc.SD_ID = t.SD_ID \
left join ( select cs.SD_ID, group_concat(cs.column_name ORDER BY cs.INTEGER_IDX ASC) as sort_cols from hive.SORT_COLS cs group by cs.SD_ID ) sc on sc.SD_ID = t.SD_ID \
А
SS
А