06 2017 档案
hive优化
摘要:USE VECTORIZATION 矢量查询(Vectorized query) 每次处理数据时会将1024行数据组成一个batch进行处理,而不是一行一行进行处理,这样能够显著提高执行速度。可以通过设置 开启来。 具体请参考: [1] https://cwiki.apache.org/conflu 阅读全文
posted @ 2017-06-15 17:56 凌度 阅读(621) 评论(0) 推荐(0)
hive创建orc表,使用LLAP查询
摘要:create table if not exists test_orc( name string, age int, address string ) partitioned by (dt string)STORED AS ORC; set hive.execution.engine=tez; se 阅读全文
posted @ 2017-06-15 17:54 凌度 阅读(2375) 评论(0) 推荐(0)
Oracle行转列、列转行的Sql语句总结
摘要:多行转字符串 这个比较简单,用||或concat函数可以实现 SQL Code 12 select concat(id,username) str from app_userselect id||username str from app_user 12 select concat(id,usern 阅读全文
posted @ 2017-06-09 11:41 凌度 阅读(1505) 评论(0) 推荐(0)
oracle查看和替换含不可见字符(空白)
摘要:select lengthb('1397256'), dump('1397256') from dual; select ascii('') from dual; select replace('13', chr(43700), '') from dual; 阅读全文
posted @ 2017-06-07 19:12 凌度 阅读(4430) 评论(0) 推荐(0)
oracle常用加解密函数
摘要:md5 DES加密 DES解密 阅读全文
posted @ 2017-06-07 11:48 凌度 阅读(3160) 评论(0) 推荐(0)