PREHOOK: query: create table src_truncate (key string, value string) PREHOOK: type: CREATETABLE POSTHOOK: query: create table src_truncate (key string, value string) POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@src_truncate PREHOOK: query: load data local inpath '../data/files/kv1.txt' into table src_truncate PREHOOK: type: LOAD PREHOOK: Output: default@src_truncate POSTHOOK: query: load data local inpath '../data/files/kv1.txt' into table src_truncate POSTHOOK: type: LOAD POSTHOOK: Output: default@src_truncate PREHOOK: query: create table srcpart_truncate (key string, value string) partitioned by (ds string, hr string) PREHOOK: type: CREATETABLE POSTHOOK: query: create table srcpart_truncate (key string, value string) partitioned by (ds string, hr string) POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@srcpart_truncate PREHOOK: query: alter table srcpart_truncate add partition (ds='2008-04-08', hr='11') PREHOOK: type: ALTERTABLE_ADDPARTS PREHOOK: Input: default@srcpart_truncate POSTHOOK: query: alter table srcpart_truncate add partition (ds='2008-04-08', hr='11') POSTHOOK: type: ALTERTABLE_ADDPARTS POSTHOOK: Input: default@srcpart_truncate POSTHOOK: Output: default@srcpart_truncate@ds=2008-04-08/hr=11 PREHOOK: query: alter table srcpart_truncate add partition (ds='2008-04-08', hr='12') PREHOOK: type: ALTERTABLE_ADDPARTS PREHOOK: Input: default@srcpart_truncate POSTHOOK: query: alter table srcpart_truncate add partition (ds='2008-04-08', hr='12') POSTHOOK: type: ALTERTABLE_ADDPARTS POSTHOOK: Input: default@srcpart_truncate POSTHOOK: Output: default@srcpart_truncate@ds=2008-04-08/hr=12 PREHOOK: query: alter table srcpart_truncate add partition (ds='2008-04-09', hr='11') PREHOOK: type: ALTERTABLE_ADDPARTS PREHOOK: Input: default@srcpart_truncate POSTHOOK: query: alter table srcpart_truncate add partition (ds='2008-04-09', hr='11') POSTHOOK: type: ALTERTABLE_ADDPARTS POSTHOOK: Input: default@srcpart_truncate POSTHOOK: Output: default@srcpart_truncate@ds=2008-04-09/hr=11 PREHOOK: query: alter table srcpart_truncate add partition (ds='2008-04-09', hr='12') PREHOOK: type: ALTERTABLE_ADDPARTS PREHOOK: Input: default@srcpart_truncate POSTHOOK: query: alter table srcpart_truncate add partition (ds='2008-04-09', hr='12') POSTHOOK: type: ALTERTABLE_ADDPARTS POSTHOOK: Input: default@srcpart_truncate POSTHOOK: Output: default@srcpart_truncate@ds=2008-04-09/hr=12 PREHOOK: query: load data local inpath '../data/files/kv1.txt' into table srcpart_truncate partition (ds='2008-04-08', hr='11') PREHOOK: type: LOAD PREHOOK: Output: default@srcpart_truncate@ds=2008-04-08/hr=11 POSTHOOK: query: load data local inpath '../data/files/kv1.txt' into table srcpart_truncate partition (ds='2008-04-08', hr='11') POSTHOOK: type: LOAD POSTHOOK: Output: default@srcpart_truncate@ds=2008-04-08/hr=11 PREHOOK: query: load data local inpath '../data/files/kv1.txt' into table srcpart_truncate partition (ds='2008-04-08', hr='12') PREHOOK: type: LOAD PREHOOK: Output: default@srcpart_truncate@ds=2008-04-08/hr=12 POSTHOOK: query: load data local inpath '../data/files/kv1.txt' into table srcpart_truncate partition (ds='2008-04-08', hr='12') POSTHOOK: type: LOAD POSTHOOK: Output: default@srcpart_truncate@ds=2008-04-08/hr=12 PREHOOK: query: load data local inpath '../data/files/kv1.txt' into table srcpart_truncate partition (ds='2008-04-09', hr='11') PREHOOK: type: LOAD PREHOOK: Output: default@srcpart_truncate@ds=2008-04-09/hr=11 POSTHOOK: query: load data local inpath '../data/files/kv1.txt' into table srcpart_truncate partition (ds='2008-04-09', hr='11') POSTHOOK: type: LOAD POSTHOOK: Output: default@srcpart_truncate@ds=2008-04-09/hr=11 PREHOOK: query: load data local inpath '../data/files/kv1.txt' into table srcpart_truncate partition (ds='2008-04-09', hr='12') PREHOOK: type: LOAD PREHOOK: Output: default@srcpart_truncate@ds=2008-04-09/hr=12 POSTHOOK: query: load data local inpath '../data/files/kv1.txt' into table srcpart_truncate partition (ds='2008-04-09', hr='12') POSTHOOK: type: LOAD POSTHOOK: Output: default@srcpart_truncate@ds=2008-04-09/hr=12 PREHOOK: query: -- truncate non-partitioned table explain TRUNCATE TABLE src_truncate PREHOOK: type: TRUNCATETABLE POSTHOOK: query: -- truncate non-partitioned table explain TRUNCATE TABLE src_truncate POSTHOOK: type: TRUNCATETABLE ABSTRACT SYNTAX TREE: (TOK_TRUNCATETABLE (TOK_TABLE_PARTITION src_truncate)) STAGE DEPENDENCIES: Stage-0 is a root stage STAGE PLANS: Stage: Stage-0 Truncate Table Operator: Truncate Table or Partition TableName: src_truncate PREHOOK: query: TRUNCATE TABLE src_truncate PREHOOK: type: TRUNCATETABLE PREHOOK: Output: default@src_truncate POSTHOOK: query: TRUNCATE TABLE src_truncate POSTHOOK: type: TRUNCATETABLE POSTHOOK: Output: default@src_truncate PREHOOK: query: select * from src_truncate PREHOOK: type: QUERY PREHOOK: Input: default@src_truncate #### A masked pattern was here #### POSTHOOK: query: select * from src_truncate POSTHOOK: type: QUERY POSTHOOK: Input: default@src_truncate #### A masked pattern was here #### PREHOOK: query: -- truncate a partition explain TRUNCATE TABLE srcpart_truncate partition (ds='2008-04-08', hr='11') PREHOOK: type: TRUNCATETABLE POSTHOOK: query: -- truncate a partition explain TRUNCATE TABLE srcpart_truncate partition (ds='2008-04-08', hr='11') POSTHOOK: type: TRUNCATETABLE ABSTRACT SYNTAX TREE: (TOK_TRUNCATETABLE (TOK_TABLE_PARTITION srcpart_truncate (TOK_PARTSPEC (TOK_PARTVAL ds '2008-04-08') (TOK_PARTVAL hr '11')))) STAGE DEPENDENCIES: Stage-0 is a root stage STAGE PLANS: Stage: Stage-0 Truncate Table Operator: Truncate Table or Partition Partition Spec: ds 2008-04-08 hr 11 TableName: srcpart_truncate PREHOOK: query: TRUNCATE TABLE srcpart_truncate partition (ds='2008-04-08', hr='11') PREHOOK: type: TRUNCATETABLE PREHOOK: Output: default@srcpart_truncate@ds=2008-04-08/hr=11 POSTHOOK: query: TRUNCATE TABLE srcpart_truncate partition (ds='2008-04-08', hr='11') POSTHOOK: type: TRUNCATETABLE POSTHOOK: Output: default@srcpart_truncate@ds=2008-04-08/hr=11 PREHOOK: query: select * from srcpart_truncate where ds='2008-04-08' and hr='11' PREHOOK: type: QUERY PREHOOK: Input: default@srcpart_truncate PREHOOK: Input: default@srcpart_truncate@ds=2008-04-08/hr=11 #### A masked pattern was here #### POSTHOOK: query: select * from srcpart_truncate where ds='2008-04-08' and hr='11' POSTHOOK: type: QUERY POSTHOOK: Input: default@srcpart_truncate POSTHOOK: Input: default@srcpart_truncate@ds=2008-04-08/hr=11 #### A masked pattern was here #### PREHOOK: query: -- truncate partitions with partial spec explain TRUNCATE TABLE srcpart_truncate partition (ds, hr='12') PREHOOK: type: TRUNCATETABLE POSTHOOK: query: -- truncate partitions with partial spec explain TRUNCATE TABLE srcpart_truncate partition (ds, hr='12') POSTHOOK: type: TRUNCATETABLE ABSTRACT SYNTAX TREE: (TOK_TRUNCATETABLE (TOK_TABLE_PARTITION srcpart_truncate (TOK_PARTSPEC (TOK_PARTVAL ds) (TOK_PARTVAL hr '12')))) STAGE DEPENDENCIES: Stage-0 is a root stage STAGE PLANS: Stage: Stage-0 Truncate Table Operator: Truncate Table or Partition Partition Spec: ds hr 12 TableName: srcpart_truncate PREHOOK: query: TRUNCATE TABLE srcpart_truncate partition (ds, hr='12') PREHOOK: type: TRUNCATETABLE PREHOOK: Output: default@srcpart_truncate@ds=2008-04-08/hr=12 PREHOOK: Output: default@srcpart_truncate@ds=2008-04-09/hr=12 POSTHOOK: query: TRUNCATE TABLE srcpart_truncate partition (ds, hr='12') POSTHOOK: type: TRUNCATETABLE POSTHOOK: Output: default@srcpart_truncate@ds=2008-04-08/hr=12 POSTHOOK: Output: default@srcpart_truncate@ds=2008-04-09/hr=12 PREHOOK: query: select * from srcpart_truncate where hr='12' PREHOOK: type: QUERY PREHOOK: Input: default@srcpart_truncate PREHOOK: Input: default@srcpart_truncate@ds=2008-04-08/hr=12 PREHOOK: Input: default@srcpart_truncate@ds=2008-04-09/hr=12 #### A masked pattern was here #### POSTHOOK: query: select * from srcpart_truncate where hr='12' POSTHOOK: type: QUERY POSTHOOK: Input: default@srcpart_truncate POSTHOOK: Input: default@srcpart_truncate@ds=2008-04-08/hr=12 POSTHOOK: Input: default@srcpart_truncate@ds=2008-04-09/hr=12 #### A masked pattern was here #### PREHOOK: query: -- truncate partitioned table explain TRUNCATE TABLE srcpart_truncate PREHOOK: type: TRUNCATETABLE POSTHOOK: query: -- truncate partitioned table explain TRUNCATE TABLE srcpart_truncate POSTHOOK: type: TRUNCATETABLE ABSTRACT SYNTAX TREE: (TOK_TRUNCATETABLE (TOK_TABLE_PARTITION srcpart_truncate)) STAGE DEPENDENCIES: Stage-0 is a root stage STAGE PLANS: Stage: Stage-0 Truncate Table Operator: Truncate Table or Partition TableName: srcpart_truncate PREHOOK: query: TRUNCATE TABLE srcpart_truncate PREHOOK: type: TRUNCATETABLE PREHOOK: Output: default@srcpart_truncate@ds=2008-04-08/hr=11 PREHOOK: Output: default@srcpart_truncate@ds=2008-04-08/hr=12 PREHOOK: Output: default@srcpart_truncate@ds=2008-04-09/hr=11 PREHOOK: Output: default@srcpart_truncate@ds=2008-04-09/hr=12 POSTHOOK: query: TRUNCATE TABLE srcpart_truncate POSTHOOK: type: TRUNCATETABLE POSTHOOK: Output: default@srcpart_truncate@ds=2008-04-08/hr=11 POSTHOOK: Output: default@srcpart_truncate@ds=2008-04-08/hr=12 POSTHOOK: Output: default@srcpart_truncate@ds=2008-04-09/hr=11 POSTHOOK: Output: default@srcpart_truncate@ds=2008-04-09/hr=12 PREHOOK: query: select * from srcpart_truncate PREHOOK: type: QUERY PREHOOK: Input: default@srcpart_truncate PREHOOK: Input: default@srcpart_truncate@ds=2008-04-08/hr=11 PREHOOK: Input: default@srcpart_truncate@ds=2008-04-08/hr=12 PREHOOK: Input: default@srcpart_truncate@ds=2008-04-09/hr=11 PREHOOK: Input: default@srcpart_truncate@ds=2008-04-09/hr=12 #### A masked pattern was here #### POSTHOOK: query: select * from srcpart_truncate POSTHOOK: type: QUERY POSTHOOK: Input: default@srcpart_truncate POSTHOOK: Input: default@srcpart_truncate@ds=2008-04-08/hr=11 POSTHOOK: Input: default@srcpart_truncate@ds=2008-04-08/hr=12 POSTHOOK: Input: default@srcpart_truncate@ds=2008-04-09/hr=11 POSTHOOK: Input: default@srcpart_truncate@ds=2008-04-09/hr=12 #### A masked pattern was here ####