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 · 2318 阅读 · 0 评论 -
hive 表数据迁移
以下脚本是对hive相关版本没有改变的#!/bin/bash#set -xDB=$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 · 627 阅读 · 0 评论