在一个几年的旧表,表最后面,新增字段

alter table dwd.dwd_xxx_dtl_di
add columns(
`line_type` string COMMENT 'xx类型'
) cascade;

插入语句,新增字段一定在select语句最后面。不然字段会错位

insert select  ... , line_type

posted on 2022-06-09 14:00  架构艺术  阅读(123)  评论(0编辑  收藏  举报