Hive query to quickly find table size (number of rows)

前端 未结 6 1449
遇见更好的自我
遇见更好的自我 2021-01-31 09:20

Is there a Hive query to quickly find table size (i.e. number of rows) without launching a time-consuming MapReduce job? (Which is why I want to avoid COUNT(*).)

6条回答
  •  失恋的感觉
    2021-01-31 09:34

    Use parquet format to store data of your external/internal table. Then you will get quicker results.

提交回复
热议问题