问答 2018-11-23 来自:开发者社区

hive中的avg聚合函数是否可以使用combiner功能?

select deptno, sum(sal) as sum_sal from emp group by deptno; -- 这个SQL肯定是可以使用到Combiner功能的select deptno, avg(sal) as avg_sal from emp group by deptno; -- 这个可以使用上吗? 之前学习combiner功能时, 说不能处理avg这种函数的

文章 2018-11-23 来自:开发者社区

请问:hive中avg聚合函数会使用到combiner功能吗?

例如下面这条SQL, 肯定是用上了combiner功能的 select deptno, sum(sal) as sum_sal from emp group by deptno hive (test)> explain select deptno, sum(sal) as sum_sal from emp group by deptno; OK Explain STAGE DEPEN...

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

产品推荐