hive新加入字段插入数据需要注意事项

hive中新加字段需要注意如下

1)如果表中有分区字段,必须先删除分区才能插入数据否则为null;

2)insert override TABLE table1 select counm1,counm2 from table2; counm1,counm2的顺序必须与table1中字段的顺序一致否则为插入的值不对;

原文地址:https://www.cnblogs.com/yaohaitao/p/5355134.html