hive优化
摘要:USE VECTORIZATION 矢量查询(Vectorized query) 每次处理数据时会将1024行数据组成一个batch进行处理,而不是一行一行进行处理,这样能够显著提高执行速度。可以通过设置 开启来。 具体请参考: [1] https://cwiki.apache.org/conflu
阅读全文
posted @
2017-06-15 17:56
凌度
阅读(609)
推荐(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
凌度
阅读(2362)
推荐(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
凌度
阅读(1491)
推荐(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
凌度
阅读(4396)
推荐(0) 编辑