How can I get row count from all tables using hive? I am interested in the database name, table name and row count
相关问题
- Hibernate and multiThread Logic
-
hive: cast array
> into map - Find function in HIVE
- Hive Tez reducers are running super slow
- HQL Unexpected AST node: min
相关文章
- 在hive sql里怎么把"2020-10-26T08:41:19.000Z"这个字符串转换成年月日
- SQL query Frequency Distribution matrix for produc
- How to left join unrelated entities?
- Cloudera 5.6: Parquet does not support date. See H
- converting to timestamp with time zone failed on A
- Hive error: parseexception missing EOF
- ClassNotFoundException: org.apache.spark.SparkConf
- How to get previous day date in Hive
How do I mention the specific database that it needs to refer in below snippet:
A much faster way to get approximate count of all rows in a table is to run explain on the table. In one of the explain clauses, it shows row counts like below:
TableScan [TS_0] (rows=224910 width=78)
The benefit is that you are not actually spending cluster resources to get that information.
The HQL command is
explain select * from table_name;
but when not optimized not shows rows in the TableScan.