2014年7月22日

记hive select distinct 多列 误区一则

摘要: 当select distinct a,b,c时,只会对a、b、c都起作用,无法达到只顾虑多余的a列;根据hive官方网站说明:当有表a b10 110 210 3此时select a,b from test group by a是无法工作的,因为hive不知道你是要取第一行的b还是取最小的b,... 阅读全文

posted @ 2014-07-22 22:54 a_badegg 阅读(1821) 评论(0) 推荐(0) 编辑

导航