hive
zhm1002
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Hive 2.3 decimal精度损失问题
1.准备测试数据 使用如下建表语句,并插入测试数据: CREATETABLEIFNOTEXISTS test_decimal( md5 string, id int, ty int, amount decimal(38, 12) ) stored as orc; insert into table test_decimal values ('9F99855A44BD41FE592B69E0D36BF3E8', 4591, 2, 18859...原创 2020-11-27 10:47:56 · 2584 阅读 · 0 评论 -
hive 表数据迁移
以下脚本是对hive相关版本没有改变的 #!/bin/bash #set -x DB=$1 #获取hive表定义 ret=$(hive -e "use ${DB};show tables;"|grep -v _es|grep -v _hb|grep -v importinfo) ret=$(hive -e "use ${DB};show tables;"|grep -v _es|grep -v _hb|grep -v importinfo) for tem in $ret; do hive -原创 2020-06-09 15:10:21 · 703 阅读 · 0 评论
分享