blob: 95a3e5bc1681f3225f64c9248c15d87f33e4f25b [file] [log] [blame]
set hive.ddl.output.format=json;
CREATE TABLE IF NOT EXISTS jsontable_n0 (key INT, value STRING) COMMENT 'json table' STORED AS TEXTFILE;
ALTER TABLE jsontable_n0 ADD COLUMNS (name STRING COMMENT 'a new column');
ALTER TABLE jsontable_n0 RENAME TO jsontable2;
SHOW TABLE EXTENDED LIKE jsontable2;
DROP TABLE jsontable2;
set hive.ddl.output.format=text;