blob: 95c2912c3bc005d63d5a2633306b40de30270b52 [file] [log] [blame]
set hive.mapred.mode=nonstrict;
CREATE DATABASE tv1;
CREATE DATABASE tv2;
CREATE TABLE invites_n1 (foo INT, bar STRING) PARTITIONED BY (ds STRING);
CREATE VIEW tv1.view1 as SELECT * FROM invites_n1;
DESCRIBE EXTENDED tv1.view1;
ALTER VIEW tv1.view1 RENAME TO tv2.view2;
DESCRIBE EXTENDED tv2.view2;
SELECT * FROM tv2.view2;
DROP TABLE invites_n1;
DROP VIEW tv2.view2;
DROP DATABASE tv1;
DROP DATABASE tv2;