hbase RowFilter

RowFilter用于过滤row key Operator Description LESS 小于 LESS_OR_EQUAL 小于等于 EQUAL 等于 NOT_EQUAL 不等于 GREATER_OR_EQUAL 大于等于 GREATER 大于……

codeigniter数据库错误信息获取

db_debug – TRUE/FALSE (boolean) – Whether database errors should be displayed. 需要设置db_debug = false Yes, this is the mysql_error() wrapper. $this->db->_error_message(); And the mysql_errno wrapper is: $this->db->_error_number(); via: http://stackoverflow.com/questions/3234564/under-codeigniter-is-it-possible-to-see-mysql-error

Hive – JOIN实现过程

准备数据 语句 SELECT a.uid,a.name,b.age FROM logs a JOIN users b ON (a.uid=b.uid); 我们希望的结果是把users表join进来获取age……

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)……