我试图做类似下面蜂巢。 我怎样才能在蜂巢列被定义为一个子查询? 这是可能的蜂巢?
hive -e "
select
distinct i.SearchListingID,
(select count(*)
from calls c
where c.ServiceID = i.SearchListingID
) as CallsCount
from Impressions i
where i.yyyymmdd = 20120401
limit 10" > ImpressionCalls.txt
Hive history file=/tmp/jd/hive_job_log_jd_201205222049_550931420.txt
FAILED:解析错误:行4:1不能在表达规范识别邻近“选择”“计数”“(”输入