【发布时间】:2017-02-25 21:04:50
【问题描述】:
我有一个存储在集群上的配置单元表。我想通过添加一个新列来修改它,并将旧列数据与从另一个表添加的新列的数据。有没有办法在不重新创建表的情况下做到这一点?
旧架构如下所示:
create external table XXX
(item_id bigint,
start_dt string,
end_dt string,
title string,
subtitle string,
description string)
row format delimited fields terminated by '\t' lines terminated by '\n'
stored as textfile
location '/user/me/XXX';
【问题讨论】:
标签: hive alter-table