impala的APPX_COUNT_DISTINCT参数

这个参数APPX_COUNT_DISTINCT=true,可以在一个select 有多条count子句,select count(id),count(pid) from t group by name,

使用注意,官网说明:
Allows multiple COUNT(DISTINCT) operations within a single query, by internally rewriting each COUNT(DISTINCT) to use the NDV() function. The resulting count is approximate rather than precise.  搜索网络
允许多个数(不同的)在一个单一的查询操作,通过内部重写每个计数(不同的)使用ndv()功能。由此产生的计数是 近似的,而不是精确的。

你可能感兴趣的:(java,hadoop,impala,cloudera)