blob: 84503d0b12a8e3f819d6d61682b7b0f803bbe459 (
plain) (
tree)
|
|
CREATE TABLE t (a STRING, b INT) PARTITIONED BY (c STRING, d STRING);
ALTER TABLE t ADD PARTITION (c='Us', d=1);
DESCRIBE t;
DESC t;
DESC TABLE t;
-- Ignore these because there exist timestamp results, e.g., `Create Table`.
-- DESC EXTENDED t;
-- DESC FORMATTED t;
DESC t PARTITION (c='Us', d=1);
-- Ignore these because there exist timestamp results, e.g., transient_lastDdlTime.
-- DESC EXTENDED t PARTITION (c='Us', d=1);
-- DESC FORMATTED t PARTITION (c='Us', d=1);
-- NoSuchPartitionException: Partition not found in table
DESC t PARTITION (c='Us', d=2);
-- AnalysisException: Partition spec is invalid
DESC t PARTITION (c='Us');
-- ParseException: PARTITION specification is incomplete
DESC t PARTITION (c='Us', d);
-- DROP TEST TABLE
DROP TABLE t;
|