aboutsummaryrefslogtreecommitdiff
path: root/sql/core/src/test/resources/sql-tests/results/describe.sql.out
blob: b448d60c7685d41bca2127730d56406a3d6a8259 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
-- Automatically generated by SQLQueryTestSuite
-- Number of queries: 10


-- !query 0
CREATE TABLE t (a STRING, b INT) PARTITIONED BY (c STRING, d STRING)
-- !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<col_name:string,data_type:string,comment:string>
-- !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<col_name:string,data_type:string,comment:string>
-- !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<col_name:string,data_type:string,comment:string>
-- !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<col_name:string,data_type:string,comment:string>
-- !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