为什么 Select Count(*) 在 hive 中比 Select * 慢 [英] Why is Select Count(*) slower than Select * in hive
本文介绍了为什么 Select Count(*) 在 hive 中比 Select * 慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用 hive 在 VirtualBox Sandbox
中运行查询时.感觉Select count(*)
比Select *
慢太多了.
When i am running queries in VirtualBox Sandbox
with hive. I feel Select count(*)
is too much slower than the Select *
.
谁能解释一下后面发生了什么?
Can anyone explain what is going on behind?
为什么会发生这种延迟?
And why this delay is happening?
推荐答案
select * from table
它可以是一个只有地图的工作但是
It can be a Map only job But
Select Count(*) from table
它可以是 Map 和 Reduce 作业
It can be a Map and Reduce job
希望这会有所帮助.
这篇关于为什么 Select Count(*) 在 hive 中比 Select * 慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文