Out of the box, the new Sandbox HDP 2.3 VM won’t add partitions to an external table, whereas HDP 2.2 is fine. The following code fails on 2.3 at adding a partition:
create external table if not exists Test01.Test02(sDate date, id int, sText string)
partitioned by(LogDay date)
ROW FORMAT DELIMITED FIELDS TERMINATED BY ‘ ‘;
alter table Test01.Test02
partition(LogDay=’2008-10-29’) location ‘/user/hue/Logs/2008-10-29’;
Error occurred executing hive query: Error while compiling statement: FAILED: ParseException line 2:31 cannot recognize input near ‘location’ ”/user/hue/Logs/2008-10-29” ‘<EOF>’ in alter table partition statement suffix