在之前的博客中已经介绍过hive的四种存储格式:http://blog.csdn.net/zyzzxycj/article/details/79267635
本文以ORCFile存储格式为例,详细介绍hive上转换表的存储格式的步骤和需要注意的地方。
1、 查看需要转换的原表信息
show create table 表名;
这边的tmp_mf是用默认格式TextFile储存的。
2、复制表信息 并创建表test2:
CREATE TABLE test2(
`entity_id` string,
`self_entity_id` string,
`shop_entity_id` string,
`curr_date` string,
`card_kind_id` string,
`topup_principal` double,
`topup_gift` double,
`pay_principal` do