PageRenderTime 26ms CodeModel.GetById 17ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/release-0.2.0-rc0/hive/external/ql/src/test/results/clientpositive/protectmode.q.out

#
text | 358 lines | 348 code | 10 blank | 0 comment | 0 complexity | e1eebd89fa8fbf8e8445b38763e9d6ff MD5 | raw file
  1PREHOOK: query: -- protect mode: syntax to change protect mode works and queries are not blocked if a table or partition is not in protect mode
  2
  3drop table tbl1
  4PREHOOK: type: DROPTABLE
  5POSTHOOK: query: -- protect mode: syntax to change protect mode works and queries are not blocked if a table or partition is not in protect mode
  6
  7drop table tbl1
  8POSTHOOK: type: DROPTABLE
  9PREHOOK: query: drop table tbl2
 10PREHOOK: type: DROPTABLE
 11POSTHOOK: query: drop table tbl2
 12POSTHOOK: type: DROPTABLE
 13PREHOOK: query: create table tbl1  (col string)
 14PREHOOK: type: CREATETABLE
 15POSTHOOK: query: create table tbl1  (col string)
 16POSTHOOK: type: CREATETABLE
 17POSTHOOK: Output: default@tbl1
 18PREHOOK: query: select * from tbl1
 19PREHOOK: type: QUERY
 20PREHOOK: Input: default@tbl1
 21PREHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-29_627_398913064602942534/-mr-10000
 22POSTHOOK: query: select * from tbl1
 23POSTHOOK: type: QUERY
 24POSTHOOK: Input: default@tbl1
 25POSTHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-29_627_398913064602942534/-mr-10000
 26PREHOOK: query: select col from tbl1
 27PREHOOK: type: QUERY
 28PREHOOK: Input: default@tbl1
 29PREHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-29_813_6047101750993899225/-mr-10000
 30POSTHOOK: query: select col from tbl1
 31POSTHOOK: type: QUERY
 32POSTHOOK: Input: default@tbl1
 33POSTHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-29_813_6047101750993899225/-mr-10000
 34PREHOOK: query: alter table tbl1 enable offline
 35PREHOOK: type: ALTERTABLE_PROTECTMODE
 36PREHOOK: Input: default@tbl1
 37PREHOOK: Output: default@tbl1
 38POSTHOOK: query: alter table tbl1 enable offline
 39POSTHOOK: type: ALTERTABLE_PROTECTMODE
 40POSTHOOK: Input: default@tbl1
 41POSTHOOK: Output: default@tbl1
 42PREHOOK: query: desc extended tbl1
 43PREHOOK: type: DESCTABLE
 44POSTHOOK: query: desc extended tbl1
 45POSTHOOK: type: DESCTABLE
 46col	string	
 47	 	 
 48Detailed Table Information	Table(tableName:tbl1, dbName:default, owner:njain, createTime:1289955989, lastAccessTime:0, retention:0, sd:StorageDescriptor(cols:[FieldSchema(name:col, type:string, comment:null)], location:pfile:/data/users/njain/hive3/hive3/build/ql/test/data/warehouse/tbl1, inputFormat:org.apache.hadoop.mapred.TextInputFormat, outputFormat:org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat, compressed:false, numBuckets:-1, serdeInfo:SerDeInfo(name:null, serializationLib:org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, parameters:{serialization.format=1}), bucketCols:[], sortCols:[], parameters:{}), partitionKeys:[], parameters:{last_modified_by=njain, last_modified_time=1289955993, PROTECT_MODE=OFFLINE, transient_lastDdlTime=1289955993}, viewOriginalText:null, viewExpandedText:null, tableType:MANAGED_TABLE)	
 49PREHOOK: query: alter table tbl1 disable offline
 50PREHOOK: type: ALTERTABLE_PROTECTMODE
 51PREHOOK: Input: default@tbl1
 52PREHOOK: Output: default@tbl1
 53POSTHOOK: query: alter table tbl1 disable offline
 54POSTHOOK: type: ALTERTABLE_PROTECTMODE
 55POSTHOOK: Input: default@tbl1
 56POSTHOOK: Output: default@tbl1
 57PREHOOK: query: desc extended tbl1
 58PREHOOK: type: DESCTABLE
 59POSTHOOK: query: desc extended tbl1
 60POSTHOOK: type: DESCTABLE
 61col	string	
 62	 	 
 63Detailed Table Information	Table(tableName:tbl1, dbName:default, owner:njain, createTime:1289955989, lastAccessTime:0, retention:0, sd:StorageDescriptor(cols:[FieldSchema(name:col, type:string, comment:null)], location:pfile:/data/users/njain/hive3/hive3/build/ql/test/data/warehouse/tbl1, inputFormat:org.apache.hadoop.mapred.TextInputFormat, outputFormat:org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat, compressed:false, numBuckets:-1, serdeInfo:SerDeInfo(name:null, serializationLib:org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, parameters:{serialization.format=1}), bucketCols:[], sortCols:[], parameters:{}), partitionKeys:[], parameters:{last_modified_by=njain, last_modified_time=1289955993, transient_lastDdlTime=1289955993}, viewOriginalText:null, viewExpandedText:null, tableType:MANAGED_TABLE)	
 64PREHOOK: query: select * from tbl1
 65PREHOOK: type: QUERY
 66PREHOOK: Input: default@tbl1
 67PREHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-33_574_4661189514345730872/-mr-10000
 68POSTHOOK: query: select * from tbl1
 69POSTHOOK: type: QUERY
 70POSTHOOK: Input: default@tbl1
 71POSTHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-33_574_4661189514345730872/-mr-10000
 72PREHOOK: query: select col from tbl1
 73PREHOOK: type: QUERY
 74PREHOOK: Input: default@tbl1
 75PREHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-33_747_3056399763928184018/-mr-10000
 76POSTHOOK: query: select col from tbl1
 77POSTHOOK: type: QUERY
 78POSTHOOK: Input: default@tbl1
 79POSTHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-33_747_3056399763928184018/-mr-10000
 80PREHOOK: query: create table tbl2  (col string) partitioned by (p string)
 81PREHOOK: type: CREATETABLE
 82POSTHOOK: query: create table tbl2  (col string) partitioned by (p string)
 83POSTHOOK: type: CREATETABLE
 84POSTHOOK: Output: default@tbl2
 85PREHOOK: query: alter table tbl2 add partition (p='p1')
 86PREHOOK: type: ALTERTABLE_ADDPARTS
 87PREHOOK: Input: default@tbl2
 88POSTHOOK: query: alter table tbl2 add partition (p='p1')
 89POSTHOOK: type: ALTERTABLE_ADDPARTS
 90POSTHOOK: Input: default@tbl2
 91POSTHOOK: Output: default@tbl2@p=p1
 92PREHOOK: query: alter table tbl2 add partition (p='p2')
 93PREHOOK: type: ALTERTABLE_ADDPARTS
 94PREHOOK: Input: default@tbl2
 95POSTHOOK: query: alter table tbl2 add partition (p='p2')
 96POSTHOOK: type: ALTERTABLE_ADDPARTS
 97POSTHOOK: Input: default@tbl2
 98POSTHOOK: Output: default@tbl2@p=p2
 99PREHOOK: query: alter table tbl2 add partition (p='p3')
100PREHOOK: type: ALTERTABLE_ADDPARTS
101PREHOOK: Input: default@tbl2
102POSTHOOK: query: alter table tbl2 add partition (p='p3')
103POSTHOOK: type: ALTERTABLE_ADDPARTS
104POSTHOOK: Input: default@tbl2
105POSTHOOK: Output: default@tbl2@p=p3
106PREHOOK: query: alter table tbl2 drop partition (p='not_exist')
107PREHOOK: type: ALTERTABLE_DROPPARTS
108PREHOOK: Input: default@tbl2
109POSTHOOK: query: alter table tbl2 drop partition (p='not_exist')
110POSTHOOK: type: ALTERTABLE_DROPPARTS
111POSTHOOK: Input: default@tbl2
112PREHOOK: query: select * from tbl2 where p='p1'
113PREHOOK: type: QUERY
114PREHOOK: Input: default@tbl2@p=p1
115PREHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-37_741_250559157559967424/-mr-10000
116POSTHOOK: query: select * from tbl2 where p='p1'
117POSTHOOK: type: QUERY
118POSTHOOK: Input: default@tbl2@p=p1
119POSTHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-37_741_250559157559967424/-mr-10000
120PREHOOK: query: select * from tbl2 where p='p2'
121PREHOOK: type: QUERY
122PREHOOK: Input: default@tbl2@p=p2
123PREHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-37_947_5906017896103195386/-mr-10000
124POSTHOOK: query: select * from tbl2 where p='p2'
125POSTHOOK: type: QUERY
126POSTHOOK: Input: default@tbl2@p=p2
127POSTHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-37_947_5906017896103195386/-mr-10000
128PREHOOK: query: alter table tbl2 partition (p='p1') enable offline
129PREHOOK: type: ALTERPARTITION_PROTECTMODE
130PREHOOK: Input: default@tbl2
131PREHOOK: Output: default@tbl2@p=p1
132POSTHOOK: query: alter table tbl2 partition (p='p1') enable offline
133POSTHOOK: type: ALTERPARTITION_PROTECTMODE
134POSTHOOK: Input: default@tbl2
135POSTHOOK: Input: default@tbl2@p=p1
136POSTHOOK: Output: default@tbl2@p=p1
137PREHOOK: query: desc extended tbl2 partition (p='p1')
138PREHOOK: type: DESCTABLE
139POSTHOOK: query: desc extended tbl2 partition (p='p1')
140POSTHOOK: type: DESCTABLE
141col	string	
142p	string	
143	 	 
144Detailed Partition Information	Partition(values:[p1], dbName:default, tableName:tbl2, createTime:1289955997, lastAccessTime:0, sd:StorageDescriptor(cols:[FieldSchema(name:col, type:string, comment:null)], location:pfile:/data/users/njain/hive3/hive3/build/ql/test/data/warehouse/tbl2/p=p1, inputFormat:org.apache.hadoop.mapred.TextInputFormat, outputFormat:org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat, compressed:false, numBuckets:-1, serdeInfo:SerDeInfo(name:null, serializationLib:org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, parameters:{serialization.format=1}), bucketCols:[], sortCols:[], parameters:{}), parameters:{last_modified_by=njain, last_modified_time=1289955999, PROTECT_MODE=OFFLINE, transient_lastDdlTime=1289955999})	
145PREHOOK: query: alter table tbl2 enable offline
146PREHOOK: type: ALTERTABLE_PROTECTMODE
147PREHOOK: Input: default@tbl2
148PREHOOK: Output: default@tbl2
149POSTHOOK: query: alter table tbl2 enable offline
150POSTHOOK: type: ALTERTABLE_PROTECTMODE
151POSTHOOK: Input: default@tbl2
152POSTHOOK: Output: default@tbl2
153PREHOOK: query: desc extended tbl2
154PREHOOK: type: DESCTABLE
155POSTHOOK: query: desc extended tbl2
156POSTHOOK: type: DESCTABLE
157col	string	
158p	string	
159	 	 
160Detailed Table Information	Table(tableName:tbl2, dbName:default, owner:njain, createTime:1289955997, lastAccessTime:0, retention:0, sd:StorageDescriptor(cols:[FieldSchema(name:col, type:string, comment:null), FieldSchema(name:p, type:string, comment:null)], location:pfile:/data/users/njain/hive3/hive3/build/ql/test/data/warehouse/tbl2, inputFormat:org.apache.hadoop.mapred.TextInputFormat, outputFormat:org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat, compressed:false, numBuckets:-1, serdeInfo:SerDeInfo(name:null, serializationLib:org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, parameters:{serialization.format=1}), bucketCols:[], sortCols:[], parameters:{}), partitionKeys:[FieldSchema(name:p, type:string, comment:null)], parameters:{last_modified_by=njain, last_modified_time=1289955999, PROTECT_MODE=OFFLINE, transient_lastDdlTime=1289955999}, viewOriginalText:null, viewExpandedText:null, tableType:MANAGED_TABLE)	
161PREHOOK: query: alter table tbl2 enable no_drop
162PREHOOK: type: ALTERTABLE_PROTECTMODE
163PREHOOK: Input: default@tbl2
164PREHOOK: Output: default@tbl2
165POSTHOOK: query: alter table tbl2 enable no_drop
166POSTHOOK: type: ALTERTABLE_PROTECTMODE
167POSTHOOK: Input: default@tbl2
168POSTHOOK: Output: default@tbl2
169PREHOOK: query: desc extended tbl2
170PREHOOK: type: DESCTABLE
171POSTHOOK: query: desc extended tbl2
172POSTHOOK: type: DESCTABLE
173col	string	
174p	string	
175	 	 
176Detailed Table Information	Table(tableName:tbl2, dbName:default, owner:njain, createTime:1289955997, lastAccessTime:0, retention:0, sd:StorageDescriptor(cols:[FieldSchema(name:col, type:string, comment:null), FieldSchema(name:p, type:string, comment:null)], location:pfile:/data/users/njain/hive3/hive3/build/ql/test/data/warehouse/tbl2, inputFormat:org.apache.hadoop.mapred.TextInputFormat, outputFormat:org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat, compressed:false, numBuckets:-1, serdeInfo:SerDeInfo(name:null, serializationLib:org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, parameters:{serialization.format=1}), bucketCols:[], sortCols:[], parameters:{}), partitionKeys:[FieldSchema(name:p, type:string, comment:null)], parameters:{last_modified_by=njain, last_modified_time=1289955999, PROTECT_MODE=OFFLINE,NO_DROP, transient_lastDdlTime=1289955999}, viewOriginalText:null, viewExpandedText:null, tableType:MANAGED_TABLE)	
177PREHOOK: query: alter table tbl2 drop partition (p='p3')
178PREHOOK: type: ALTERTABLE_DROPPARTS
179PREHOOK: Input: default@tbl2
180PREHOOK: Output: default@tbl2@p=p3
181POSTHOOK: query: alter table tbl2 drop partition (p='p3')
182POSTHOOK: type: ALTERTABLE_DROPPARTS
183POSTHOOK: Input: default@tbl2
184POSTHOOK: Output: default@tbl2@p=p3
185PREHOOK: query: alter table tbl2 disable offline
186PREHOOK: type: ALTERTABLE_PROTECTMODE
187PREHOOK: Input: default@tbl2
188PREHOOK: Output: default@tbl2
189POSTHOOK: query: alter table tbl2 disable offline
190POSTHOOK: type: ALTERTABLE_PROTECTMODE
191POSTHOOK: Input: default@tbl2
192POSTHOOK: Output: default@tbl2
193PREHOOK: query: desc extended tbl2
194PREHOOK: type: DESCTABLE
195POSTHOOK: query: desc extended tbl2
196POSTHOOK: type: DESCTABLE
197col	string	
198p	string	
199	 	 
200Detailed Table Information	Table(tableName:tbl2, dbName:default, owner:njain, createTime:1289955997, lastAccessTime:0, retention:0, sd:StorageDescriptor(cols:[FieldSchema(name:col, type:string, comment:null), FieldSchema(name:p, type:string, comment:null)], location:pfile:/data/users/njain/hive3/hive3/build/ql/test/data/warehouse/tbl2, inputFormat:org.apache.hadoop.mapred.TextInputFormat, outputFormat:org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat, compressed:false, numBuckets:-1, serdeInfo:SerDeInfo(name:null, serializationLib:org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, parameters:{serialization.format=1}), bucketCols:[], sortCols:[], parameters:{}), partitionKeys:[FieldSchema(name:p, type:string, comment:null)], parameters:{last_modified_by=njain, last_modified_time=1289956000, PROTECT_MODE=NO_DROP, transient_lastDdlTime=1289956000}, viewOriginalText:null, viewExpandedText:null, tableType:MANAGED_TABLE)	
201PREHOOK: query: alter table tbl2 disable no_drop
202PREHOOK: type: ALTERTABLE_PROTECTMODE
203PREHOOK: Input: default@tbl2
204PREHOOK: Output: default@tbl2
205POSTHOOK: query: alter table tbl2 disable no_drop
206POSTHOOK: type: ALTERTABLE_PROTECTMODE
207POSTHOOK: Input: default@tbl2
208POSTHOOK: Output: default@tbl2
209PREHOOK: query: desc extended tbl2
210PREHOOK: type: DESCTABLE
211POSTHOOK: query: desc extended tbl2
212POSTHOOK: type: DESCTABLE
213col	string	
214p	string	
215	 	 
216Detailed Table Information	Table(tableName:tbl2, dbName:default, owner:njain, createTime:1289955997, lastAccessTime:0, retention:0, sd:StorageDescriptor(cols:[FieldSchema(name:col, type:string, comment:null), FieldSchema(name:p, type:string, comment:null)], location:pfile:/data/users/njain/hive3/hive3/build/ql/test/data/warehouse/tbl2, inputFormat:org.apache.hadoop.mapred.TextInputFormat, outputFormat:org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat, compressed:false, numBuckets:-1, serdeInfo:SerDeInfo(name:null, serializationLib:org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, parameters:{serialization.format=1}), bucketCols:[], sortCols:[], parameters:{}), partitionKeys:[FieldSchema(name:p, type:string, comment:null)], parameters:{last_modified_by=njain, last_modified_time=1289956000, transient_lastDdlTime=1289956000}, viewOriginalText:null, viewExpandedText:null, tableType:MANAGED_TABLE)	
217PREHOOK: query: select * from tbl2 where p='p2'
218PREHOOK: type: QUERY
219PREHOOK: Input: default@tbl2@p=p2
220PREHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-40_474_6780554733606394299/-mr-10000
221POSTHOOK: query: select * from tbl2 where p='p2'
222POSTHOOK: type: QUERY
223POSTHOOK: Input: default@tbl2@p=p2
224POSTHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-40_474_6780554733606394299/-mr-10000
225PREHOOK: query: select col from tbl2 where p='p2'
226PREHOOK: type: QUERY
227PREHOOK: Input: default@tbl2@p=p2
228PREHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-40_697_3925214840318924806/-mr-10000
229POSTHOOK: query: select col from tbl2 where p='p2'
230POSTHOOK: type: QUERY
231POSTHOOK: Input: default@tbl2@p=p2
232POSTHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-40_697_3925214840318924806/-mr-10000
233PREHOOK: query: alter table tbl2 partition (p='p1') disable offline
234PREHOOK: type: ALTERPARTITION_PROTECTMODE
235PREHOOK: Input: default@tbl2
236PREHOOK: Output: default@tbl2@p=p1
237POSTHOOK: query: alter table tbl2 partition (p='p1') disable offline
238POSTHOOK: type: ALTERPARTITION_PROTECTMODE
239POSTHOOK: Input: default@tbl2
240POSTHOOK: Input: default@tbl2@p=p1
241POSTHOOK: Output: default@tbl2@p=p1
242PREHOOK: query: desc extended tbl2 partition (p='p1')
243PREHOOK: type: DESCTABLE
244POSTHOOK: query: desc extended tbl2 partition (p='p1')
245POSTHOOK: type: DESCTABLE
246col	string	
247p	string	
248	 	 
249Detailed Partition Information	Partition(values:[p1], dbName:default, tableName:tbl2, createTime:1289955997, lastAccessTime:0, sd:StorageDescriptor(cols:[FieldSchema(name:col, type:string, comment:null)], location:pfile:/data/users/njain/hive3/hive3/build/ql/test/data/warehouse/tbl2/p=p1, inputFormat:org.apache.hadoop.mapred.TextInputFormat, outputFormat:org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat, compressed:false, numBuckets:-1, serdeInfo:SerDeInfo(name:null, serializationLib:org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, parameters:{serialization.format=1}), bucketCols:[], sortCols:[], parameters:{}), parameters:{last_modified_by=njain, last_modified_time=1289956004, transient_lastDdlTime=1289956004})	
250PREHOOK: query: select * from tbl2 where p='p1'
251PREHOOK: type: QUERY
252PREHOOK: Input: default@tbl2@p=p1
253PREHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-44_370_4746714320711761920/-mr-10000
254POSTHOOK: query: select * from tbl2 where p='p1'
255POSTHOOK: type: QUERY
256POSTHOOK: Input: default@tbl2@p=p1
257POSTHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-44_370_4746714320711761920/-mr-10000
258PREHOOK: query: select col from tbl2 where p='p1'
259PREHOOK: type: QUERY
260PREHOOK: Input: default@tbl2@p=p1
261PREHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-44_681_3312901000594329647/-mr-10000
262POSTHOOK: query: select col from tbl2 where p='p1'
263POSTHOOK: type: QUERY
264POSTHOOK: Input: default@tbl2@p=p1
265POSTHOOK: Output: file:/tmp/njain/hive_2010-11-16_17-06-44_681_3312901000594329647/-mr-10000
266PREHOOK: query: insert overwrite table tbl1 select col from tbl2 where p='p1'
267PREHOOK: type: QUERY
268PREHOOK: Input: default@tbl2@p=p1
269PREHOOK: Output: default@tbl1
270POSTHOOK: query: insert overwrite table tbl1 select col from tbl2 where p='p1'
271POSTHOOK: type: QUERY
272POSTHOOK: Input: default@tbl2@p=p1
273POSTHOOK: Output: default@tbl1
274POSTHOOK: Lineage: tbl1.col SIMPLE [(tbl2)tbl2.FieldSchema(name:col, type:string, comment:null), ]
275PREHOOK: query: insert overwrite table tbl1 select col from tbl1
276PREHOOK: type: QUERY
277PREHOOK: Input: default@tbl1
278PREHOOK: Output: default@tbl1
279POSTHOOK: query: insert overwrite table tbl1 select col from tbl1
280POSTHOOK: type: QUERY
281POSTHOOK: Input: default@tbl1
282POSTHOOK: Output: default@tbl1
283POSTHOOK: Lineage: tbl1.col SIMPLE [(tbl2)tbl2.FieldSchema(name:col, type:string, comment:null), ]
284POSTHOOK: Lineage: tbl1.col SIMPLE [(tbl1)tbl1.FieldSchema(name:col, type:string, comment:null), ]
285PREHOOK: query: alter table tbl2 partition (p='p1') enable no_drop
286PREHOOK: type: ALTERPARTITION_PROTECTMODE
287PREHOOK: Input: default@tbl2
288PREHOOK: Output: default@tbl2@p=p1
289POSTHOOK: query: alter table tbl2 partition (p='p1') enable no_drop
290POSTHOOK: type: ALTERPARTITION_PROTECTMODE
291POSTHOOK: Input: default@tbl2
292POSTHOOK: Input: default@tbl2@p=p1
293POSTHOOK: Output: default@tbl2@p=p1
294POSTHOOK: Lineage: tbl1.col SIMPLE [(tbl2)tbl2.FieldSchema(name:col, type:string, comment:null), ]
295POSTHOOK: Lineage: tbl1.col SIMPLE [(tbl1)tbl1.FieldSchema(name:col, type:string, comment:null), ]
296PREHOOK: query: alter table tbl2 partition (p='p1') disable no_drop
297PREHOOK: type: ALTERPARTITION_PROTECTMODE
298PREHOOK: Input: default@tbl2
299PREHOOK: Output: default@tbl2@p=p1
300POSTHOOK: query: alter table tbl2 partition (p='p1') disable no_drop
301POSTHOOK: type: ALTERPARTITION_PROTECTMODE
302POSTHOOK: Input: default@tbl2
303POSTHOOK: Input: default@tbl2@p=p1
304POSTHOOK: Output: default@tbl2@p=p1
305POSTHOOK: Lineage: tbl1.col SIMPLE [(tbl2)tbl2.FieldSchema(name:col, type:string, comment:null), ]
306POSTHOOK: Lineage: tbl1.col SIMPLE [(tbl1)tbl1.FieldSchema(name:col, type:string, comment:null), ]
307PREHOOK: query: alter table tbl2 partition (p='p2') enable no_drop
308PREHOOK: type: ALTERPARTITION_PROTECTMODE
309PREHOOK: Input: default@tbl2
310PREHOOK: Output: default@tbl2@p=p2
311POSTHOOK: query: alter table tbl2 partition (p='p2') enable no_drop
312POSTHOOK: type: ALTERPARTITION_PROTECTMODE
313POSTHOOK: Input: default@tbl2
314POSTHOOK: Input: default@tbl2@p=p2
315POSTHOOK: Output: default@tbl2@p=p2
316POSTHOOK: Lineage: tbl1.col SIMPLE [(tbl2)tbl2.FieldSchema(name:col, type:string, comment:null), ]
317POSTHOOK: Lineage: tbl1.col SIMPLE [(tbl1)tbl1.FieldSchema(name:col, type:string, comment:null), ]
318PREHOOK: query: alter table tbl2 drop partition (p='p1')
319PREHOOK: type: ALTERTABLE_DROPPARTS
320PREHOOK: Input: default@tbl2
321PREHOOK: Output: default@tbl2@p=p1
322POSTHOOK: query: alter table tbl2 drop partition (p='p1')
323POSTHOOK: type: ALTERTABLE_DROPPARTS
324POSTHOOK: Input: default@tbl2
325POSTHOOK: Output: default@tbl2@p=p1
326POSTHOOK: Lineage: tbl1.col SIMPLE [(tbl2)tbl2.FieldSchema(name:col, type:string, comment:null), ]
327POSTHOOK: Lineage: tbl1.col SIMPLE [(tbl1)tbl1.FieldSchema(name:col, type:string, comment:null), ]
328PREHOOK: query: alter table tbl2 partition (p='p2') disable no_drop
329PREHOOK: type: ALTERPARTITION_PROTECTMODE
330PREHOOK: Input: default@tbl2
331PREHOOK: Output: default@tbl2@p=p2
332POSTHOOK: query: alter table tbl2 partition (p='p2') disable no_drop
333POSTHOOK: type: ALTERPARTITION_PROTECTMODE
334POSTHOOK: Input: default@tbl2
335POSTHOOK: Input: default@tbl2@p=p2
336POSTHOOK: Output: default@tbl2@p=p2
337POSTHOOK: Lineage: tbl1.col SIMPLE [(tbl2)tbl2.FieldSchema(name:col, type:string, comment:null), ]
338POSTHOOK: Lineage: tbl1.col SIMPLE [(tbl1)tbl1.FieldSchema(name:col, type:string, comment:null), ]
339PREHOOK: query: drop table tbl1
340PREHOOK: type: DROPTABLE
341PREHOOK: Input: default@tbl1
342PREHOOK: Output: default@tbl1
343POSTHOOK: query: drop table tbl1
344POSTHOOK: type: DROPTABLE
345POSTHOOK: Input: default@tbl1
346POSTHOOK: Output: default@tbl1
347POSTHOOK: Lineage: tbl1.col SIMPLE [(tbl2)tbl2.FieldSchema(name:col, type:string, comment:null), ]
348POSTHOOK: Lineage: tbl1.col SIMPLE [(tbl1)tbl1.FieldSchema(name:col, type:string, comment:null), ]
349PREHOOK: query: drop table tbl2
350PREHOOK: type: DROPTABLE
351PREHOOK: Input: default@tbl2
352PREHOOK: Output: default@tbl2
353POSTHOOK: query: drop table tbl2
354POSTHOOK: type: DROPTABLE
355POSTHOOK: Input: default@tbl2
356POSTHOOK: Output: default@tbl2
357POSTHOOK: Lineage: tbl1.col SIMPLE [(tbl2)tbl2.FieldSchema(name:col, type:string, comment:null), ]
358POSTHOOK: Lineage: tbl1.col SIMPLE [(tbl1)tbl1.FieldSchema(name:col, type:string, comment:null), ]