Skip to content

Commit 2ed1069

Browse files
committed
Ignore EXTENDED and FORMATTED again for transient_lastDdlTime.
1 parent ec574ff commit 2ed1069

File tree

2 files changed

+13
-58
lines changed

2 files changed

+13
-58
lines changed

sql/core/src/test/resources/sql-tests/inputs/describe.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ ALTER TABLE t ADD PARTITION (c='Us', d=1);
44

55
DESC t;
66

7-
-- Ignore these because there exists timestamp results, e.g., `Create Table`
7+
-- Ignore these because there exist timestamp results, e.g., `Create Table`.
88
-- DESC EXTENDED t;
99
-- DESC FORMATTED t;
1010

1111
DESC t PARTITION (c='Us', d=1);
1212

13-
DESC EXTENDED t PARTITION (c='Us', d=1);
14-
15-
DESC FORMATTED t PARTITION (c='Us', d=1);
13+
-- Ignore these because there exist timestamp results, e.g., transient_lastDdlTime.
14+
-- DESC EXTENDED t PARTITION (c='Us', d=1);
15+
-- DESC FORMATTED t PARTITION (c='Us', d=1);
1616

1717
-- NoSuchPartitionException: Partition not found in table
1818
DESC t PARTITION (c='Us', d=2);

sql/core/src/test/resources/sql-tests/results/describe.sql.out

Lines changed: 9 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- Automatically generated by SQLQueryTestSuite
2-
-- Number of queries: 9
2+
-- Number of queries: 7
33

44

55
-- !query 0
@@ -49,75 +49,30 @@ d string
4949

5050

5151
-- !query 4
52-
DESC EXTENDED t PARTITION (c='Us', d=1)
53-
-- !query 4 schema
54-
struct<col_name:string,data_type:string,comment:string>
55-
-- !query 4 output
56-
# Partition Information
57-
# col_name data_type comment
58-
Detailed Partition Information CatalogPartition(
59-
Partition Values: [Us, 1]
60-
Storage(InputFormat: org.apache.hadoop.mapred.TextInputFormat, OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat)
61-
Partition Parameters:{})
62-
a string
63-
b int
64-
c string
65-
c string
66-
d string
67-
d string
68-
69-
70-
-- !query 5
71-
DESC FORMATTED t PARTITION (c='Us', d=1)
72-
-- !query 5 schema
73-
struct<col_name:string,data_type:string,comment:string>
74-
-- !query 5 output
75-
# Detailed Partition Information
76-
# Partition Information
77-
# Storage Information
78-
# col_name data_type comment
79-
Compressed: No
80-
Database: default
81-
InputFormat: org.apache.hadoop.mapred.TextInputFormat
82-
Location:
83-
OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
84-
Partition Parameters:
85-
Partition Value: [Us, 1]
86-
Storage Desc Parameters:
87-
Table: t
88-
a string
89-
b int
90-
c string
91-
c string
92-
d string
93-
d string
94-
95-
96-
-- !query 6
9752
DESC t PARTITION (c='Us', d=2)
98-
-- !query 6 schema
53+
-- !query 4 schema
9954
struct<>
100-
-- !query 6 output
55+
-- !query 4 output
10156
org.apache.spark.sql.catalyst.analysis.NoSuchPartitionException
10257
Partition not found in table 't' database 'default':
10358
c -> Us
10459
d -> 2;
10560

10661

107-
-- !query 7
62+
-- !query 5
10863
DESC t PARTITION (c='Us')
109-
-- !query 7 schema
64+
-- !query 5 schema
11065
struct<>
111-
-- !query 7 output
66+
-- !query 5 output
11267
org.apache.spark.sql.AnalysisException
11368
Partition spec is invalid. The spec (c) must match the partition spec (c, d) defined in table '`default`.`t`';
11469

11570

116-
-- !query 8
71+
-- !query 6
11772
DESC t PARTITION (c='Us', d)
118-
-- !query 8 schema
73+
-- !query 6 schema
11974
struct<>
120-
-- !query 8 output
75+
-- !query 6 output
12176
org.apache.spark.sql.catalyst.parser.ParseException
12277

12378
Unsupported SQL statement

0 commit comments

Comments
 (0)