create external table demotable(
column1 string,
column2 string,
column3 string)
row format delimited fields terminated by '|'
location '/data/demotable';
I create external table 'demotable' and the data in '/data/demotable' is like
aaa|bbb|ccc
ddd|eee|fff
www|ttt|uuu
...
yyy|uuu|kkk
Now I want to add two more columns in my data and it is going to be like
aaa|bbb|ccc
ddd|eee|fff
www|ttt|uuu
...
yyy|uuu|kkk|ppp|lll
vvv|mmm|zzz|ttt|hhh
Is there any way to :
1.add new columns in my table(for new data)
2.keep the old data(just mark the last two columns as 'NULL') ?