Hive: how to show all partitions of a table?

后端 未结 4 1412
再見小時候
再見小時候 2021-01-31 01:33

I have a table with 1000+ partitions.

\"Show partitions\" command only lists a small number of partitions.

How can i show all partitions?

U

4条回答
  •  抹茶落季
    2021-01-31 02:12

    CLI has some limit when ouput is displayed. I suggest to export output into local file:

    $hive -e 'show partitions table;' > partitions
    

提交回复
热议问题