Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.14.0
-
None
-
None
-
HDP 2.2
Description
Feature request to support rewriting a table into a different format or compression level via a single alter table statement:
ALTER TABLE ... STORED AS... TBLPROPERTIES(...)
Currently we create a new table of a different format and do
INSERT OVERWRITE newtable SELECT * FROM oldtable
but a colleague has just asked me why this can't be handled by a single alter statement via a tempory table replacement under the hood, which seems like a fair question.
Best Regards,
Hari Sekhon
http://www.linkedin.com/in/harisekhon