Hive – Group By 的实现

准备数据 SELECT uid, sum(count) FROM logs group by uid; hive> select * from logs; a 苹果 5 a 橙子 3 a 苹果 2 b 烧鸡 1 hive> SELECT uid, sum(count) FROM logs group by uid;……

Hive – Distinct 的实现

准备数据 语句 select count, count(distinct uid) from logs group by count; hive> select * from logs; OK a 苹果 3 a 橙子 3 a 烧鸡 1 b 烧鸡 3 hive> select count, count(distinct uid)……

使用jsduck生成extjs3.x的代码

直接按说明的命令会出错 Error: Error while parsing /root/PROJECTS/foundation-ui/src/main/webapp/scripts/ext/src/ext-core/src/adapter/ext-base-begin.js: Line 18: Unexpected end of input 解决方法 jsduck ext-3.4.0/src/{core,data,dd,direct,ext-core/src/core,ext-core/src/data,ext-core/src/util,state,widgets} --output api 来源:http://ww……