Another useful query if you want to find other tables to which a particular column belongs:
SELECT c.column_name, tbl_name, c.comment, c.type_name, c.integer_idx, tbl_id, create_time, owner, retention, t.sd_id, tbl_type, input_format, is_compressed, location, num_buckets, output_format, serde_id, s.cd_id FROM TBLS t, SDS s, COLUMNS_V2 c
Pratik khadloya
source share