-
Notifications
You must be signed in to change notification settings - Fork 28k
/
describe-table-after-alter-table.sql.out
156 lines (120 loc) · 5.38 KB
/
describe-table-after-alter-table.sql.out
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
-- Automatically generated by SQLQueryTestSuite
-- Number of queries: 12
-- !query 0
CREATE TABLE table_with_comment (a STRING, b INT, c STRING, d STRING) USING parquet COMMENT 'added'
-- !query 0 schema
struct<>
-- !query 0 output
-- !query 1
DESC FORMATTED table_with_comment
-- !query 1 schema
struct<col_name:string,data_type:string,comment:string>
-- !query 1 output
a string
b int
c string
d string
# Detailed Table Information
Database default
Table table_with_comment
Created [not included in comparison]
Last Access [not included in comparison]
Type MANAGED
Provider parquet
Comment added
Location [not included in comparison]sql/core/spark-warehouse/table_with_comment
-- !query 2
ALTER TABLE table_with_comment SET TBLPROPERTIES("comment"= "modified comment", "type"= "parquet")
-- !query 2 schema
struct<>
-- !query 2 output
-- !query 3
DESC FORMATTED table_with_comment
-- !query 3 schema
struct<col_name:string,data_type:string,comment:string>
-- !query 3 output
a string
b int
c string
d string
# Detailed Table Information
Database default
Table table_with_comment
Created [not included in comparison]
Last Access [not included in comparison]
Type MANAGED
Provider parquet
Comment modified comment
Table Properties [type=parquet]
Location [not included in comparison]sql/core/spark-warehouse/table_with_comment
-- !query 4
DROP TABLE table_with_comment
-- !query 4 schema
struct<>
-- !query 4 output
-- !query 5
CREATE TABLE table_comment (a STRING, b INT) USING parquet
-- !query 5 schema
struct<>
-- !query 5 output
-- !query 6
DESC FORMATTED table_comment
-- !query 6 schema
struct<col_name:string,data_type:string,comment:string>
-- !query 6 output
a string
b int
# Detailed Table Information
Database default
Table table_comment
Created [not included in comparison]
Last Access [not included in comparison]
Type MANAGED
Provider parquet
Location [not included in comparison]sql/core/spark-warehouse/table_comment
-- !query 7
ALTER TABLE table_comment SET TBLPROPERTIES(comment = "added comment")
-- !query 7 schema
struct<>
-- !query 7 output
-- !query 8
DESC formatted table_comment
-- !query 8 schema
struct<col_name:string,data_type:string,comment:string>
-- !query 8 output
a string
b int
# Detailed Table Information
Database default
Table table_comment
Created [not included in comparison]
Last Access [not included in comparison]
Type MANAGED
Provider parquet
Comment added comment
Location [not included in comparison]sql/core/spark-warehouse/table_comment
-- !query 9
ALTER TABLE table_comment UNSET TBLPROPERTIES IF EXISTS ('comment')
-- !query 9 schema
struct<>
-- !query 9 output
-- !query 10
DESC FORMATTED table_comment
-- !query 10 schema
struct<col_name:string,data_type:string,comment:string>
-- !query 10 output
a string
b int
# Detailed Table Information
Database default
Table table_comment
Created [not included in comparison]
Last Access [not included in comparison]
Type MANAGED
Provider parquet
Location [not included in comparison]sql/core/spark-warehouse/table_comment
-- !query 11
DROP TABLE table_comment
-- !query 11 schema
struct<>
-- !query 11 output