how to get columns count in hive(Table and Column Statistics)

when i test data i want to know how many columns in the table?

in the past,i use show create tables to check it. and recently i find a new way :
show table or show column stats are really usefully.
i write here help me remember it!

https://impala.apache.org/docs/build/html/topics/impala_perf_stats.html

show table stats your_table_name

show column stats you_table_name

you want to know the columns count is a situation, behind this is i want to have an overview about the table
key words :Table and Column Statistics

posted @ 2023-04-22 17:21  叶常落  阅读(2)  评论(0编辑  收藏  举报  来源