-- Automatically generated by SQLQueryTestSuite -- Number of queries: 10 -- !query 0 CREATE TABLE t (a STRING, b INT, c STRING, d STRING) USING parquet PARTITIONED BY (c, d) -- !query 0 schema struct<> -- !query 0 output -- !query 1 ALTER TABLE t ADD PARTITION (c='Us', d=1) -- !query 1 schema struct<> -- !query 1 output -- !query 2 DESCRIBE t -- !query 2 schema struct -- !query 2 output # Partition Information # col_name data_type comment a string b int c string c string d string d string -- !query 3 DESC t -- !query 3 schema struct -- !query 3 output # Partition Information # col_name data_type comment a string b int c string c string d string d string -- !query 4 DESC TABLE t -- !query 4 schema struct -- !query 4 output # Partition Information # col_name data_type comment a string b int c string c string d string d string -- !query 5 DESC t PARTITION (c='Us', d=1) -- !query 5 schema struct -- !query 5 output # Partition Information # col_name data_type comment a string b int c string c string d string d string -- !query 6 DESC t PARTITION (c='Us', d=2) -- !query 6 schema struct<> -- !query 6 output org.apache.spark.sql.catalyst.analysis.NoSuchPartitionException Partition not found in table 't' database 'default': c -> Us d -> 2; -- !query 7 DESC t PARTITION (c='Us') -- !query 7 schema struct<> -- !query 7 output org.apache.spark.sql.AnalysisException Partition spec is invalid. The spec (c) must match the partition spec (c, d) defined in table '`default`.`t`'; -- !query 8 DESC t PARTITION (c='Us', d) -- !query 8 schema struct<> -- !query 8 output org.apache.spark.sql.catalyst.parser.ParseException PARTITION specification is incomplete: `d`(line 1, pos 0) == SQL == DESC t PARTITION (c='Us', d) ^^^ -- !query 9 DROP TABLE t -- !query 9 schema struct<> -- !query 9 output