diff --git itests/src/test/resources/testconfiguration.properties itests/src/test/resources/testconfiguration.properties index f66e19be3e..06dfe19433 100644 --- itests/src/test/resources/testconfiguration.properties +++ itests/src/test/resources/testconfiguration.properties @@ -12,6 +12,8 @@ minimr.query.files=infer_bucket_sort_map_operators.q,\ index_bitmap_auto.q,\ scriptfile1.q,\ bucket_num_reducers2.q,\ + bucket_num_reducers_acid.q,\ + bucket_num_reducers_acid2.q,\ scriptfile1_win.q # These tests are disabled for minimr diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/FileSinkOperator.java ql/src/java/org/apache/hadoop/hive/ql/exec/FileSinkOperator.java index 4d46d65227..8999f6f4f0 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/FileSinkOperator.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/FileSinkOperator.java @@ -250,6 +250,7 @@ private void commit(FileSystem fs) throws HiveException { } public void abortWriters(FileSystem fs, boolean abort, boolean delete) throws HiveException { + //should this close updaters[]? for (int idx = 0; idx < outWriters.length; idx++) { if (outWriters[idx] != null) { try { @@ -750,16 +751,15 @@ public void process(Object row, int tag) throws HiveException { LOG.info(toString() + ": records written - " + numRows); } - // This should always be 0 for the final result file - int writerOffset = findWriterOffset(row); + int writerOffset; // This if/else chain looks ugly in the inner loop, but given that it will be 100% the same // for a given operator branch prediction should work quite nicely on it. // RecordUpdateer expects to get the actual row, not a serialized version of it. Thus we // pass the row rather than recordValue. if (conf.getWriteType() == AcidUtils.Operation.NOT_ACID) { - rowOutWriters[writerOffset].write(recordValue); + rowOutWriters[findWriterOffset(row)].write(recordValue); } else if (conf.getWriteType() == AcidUtils.Operation.INSERT) { - fpaths.updaters[writerOffset].insert(conf.getTransactionId(), row); + fpaths.updaters[findWriterOffset(row)].insert(conf.getTransactionId(), row); } else { // TODO I suspect we could skip much of the stuff above this in the function in the case // of update and delete. But I don't understand all of the side effects of the above @@ -772,22 +772,39 @@ public void process(Object row, int tag) throws HiveException { bucketInspector.get(recIdInspector.getStructFieldData(recId, bucketField)); int bucketNum = BucketCodec.determineVersion(bucketProperty).decodeWriterId(bucketProperty); - if (fpaths.acidLastBucket != bucketNum) { - fpaths.acidLastBucket = bucketNum; - // Switch files - fpaths.updaters[conf.getDpSortState().equals(DPSortState.PARTITION_BUCKET_SORTED) ? 0 : ++fpaths.acidFileOffset] = HiveFileFormatUtils.getAcidRecordUpdater( - jc, conf.getTableInfo(), bucketNum, conf, fpaths.outPaths[conf.getDpSortState().equals(DPSortState.PARTITION_BUCKET_SORTED) ? 0 :fpaths.acidFileOffset], - rowInspector, reporter, 0); + writerOffset = 0; + if (multiFileSpray) { + //bucket_num_reducers_acid.q, TestTxnCommands.testMoreBucketsThanReducers() + if (!bucketMap.containsKey(bucketNum)) { + String extraMsg = " (no path info/)" + recId; + if (fpaths != null && fpaths.finalPaths != null && fpaths.finalPaths.length > 0) { + extraMsg = " (finalPaths[0]=" + fpaths.finalPaths[0] + ")/" + recId; + } + throw new IllegalStateException("Found bucketNum=" + bucketNum + + " from data but no mapping in 'bucketMap'." + extraMsg); + } + writerOffset = bucketMap.get(bucketNum); + } + if (fpaths.updaters[writerOffset] == null) { + /*data for delete commands always have ROW__ID which implies that the bucket ID + * for each row is known. RecordUpdater creates bucket_N file based on 'bucketNum' thus + * delete events always land in the proper bucket_N file. This could even handle + * cases where multiple writers are writing bucket_N file for the same N in which case + * Hive.copyFiles() will make one of them bucket_N_copy_M in the final location. The + * reset of acid (read path) doesn't know how to handle copy_N files except for 'original' + * files (HIVE-16177)*/ + fpaths.updaters[writerOffset] = HiveFileFormatUtils.getAcidRecordUpdater( + jc, conf.getTableInfo(), bucketNum, conf, fpaths.outPaths[writerOffset], + rowInspector, reporter, 0); if (LOG.isDebugEnabled()) { LOG.debug("Created updater for bucket number " + bucketNum + " using file " + - fpaths.outPaths[conf.getDpSortState().equals(DPSortState.PARTITION_BUCKET_SORTED) ? 0 :fpaths.acidFileOffset]); + fpaths.outPaths[writerOffset]); } } - if (conf.getWriteType() == AcidUtils.Operation.UPDATE) { - fpaths.updaters[conf.getDpSortState().equals(DPSortState.PARTITION_BUCKET_SORTED) ? 0 :fpaths.acidFileOffset].update(conf.getTransactionId(), row); + fpaths.updaters[writerOffset].update(conf.getTransactionId(), row); } else if (conf.getWriteType() == AcidUtils.Operation.DELETE) { - fpaths.updaters[conf.getDpSortState().equals(DPSortState.PARTITION_BUCKET_SORTED) ? 0 :fpaths.acidFileOffset].delete(conf.getTransactionId(), row); + fpaths.updaters[writerOffset].delete(conf.getTransactionId(), row); } else { throw new HiveException("Unknown write type " + conf.getWriteType().toString()); } @@ -817,6 +834,11 @@ private int findWriterOffset(Object row) throws HiveException { if (!multiFileSpray) { return 0; } else { + assert getConf().getWriteType() != AcidUtils.Operation.DELETE && + getConf().getWriteType() != AcidUtils.Operation.UPDATE : + "Unexpected operation type: " + getConf().getWriteType(); + //this is not used for DELETE commands (partitionEval is not set up correctly + // (or needed) for that Object[] bucketFieldValues = new Object[partitionEval.length]; for(int i = 0; i < partitionEval.length; i++) { bucketFieldValues[i] = partitionEval[i].evaluate(row); @@ -826,7 +848,6 @@ private int findWriterOffset(Object row) throws HiveException { int bucketNum = prtner.getBucket(key, null, totalFiles); return bucketMap.get(bucketNum); } - } /** diff --git ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcRecordUpdater.java ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcRecordUpdater.java index d40b89ae14..c30e8fe75a 100644 --- ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcRecordUpdater.java +++ ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcRecordUpdater.java @@ -479,6 +479,7 @@ public void close(boolean abort) throws IOException { } } else { if (writer == null) { + //so that we create empty bucket files when needed (but see HIVE-17138) writer = OrcFile.createWriter(path, writerOptions); } writer.close(); // normal close. diff --git ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommands.java ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommands.java index c531aeb8d2..c50c1a8726 100644 --- ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommands.java +++ ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommands.java @@ -888,4 +888,50 @@ public void testNonAcidToAcidConversion01() throws Exception { //make sure they are the same before and after compaction } + //@Ignore("see bucket_num_reducers_acid.q") + @Test + public void testMoreBucketsThanReducers() throws Exception { + //see bucket_num_reducers.q bucket_num_reducers2.q + // todo: try using set VerifyNumReducersHook.num.reducers=10; + d.destroy(); + HiveConf hc = new HiveConf(hiveConf); + hc.setIntVar(HiveConf.ConfVars.MAXREDUCERS, 1); + //this is used in multiple places, SemanticAnalyzer.getBucketingSortingDest() among others + hc.setIntVar(HiveConf.ConfVars.HADOOPNUMREDUCERS, 1); + hc.setBoolVar(HiveConf.ConfVars.HIVE_EXPLAIN_USER, false); + d = new Driver(hc); + d.setMaxRows(10000); + runStatementOnDriver("insert into " + Table.ACIDTBL + " values(1,1)");//txn X write to bucket1 + runStatementOnDriver("insert into " + Table.ACIDTBL + " values(0,0),(3,3)");// txn X + 1 write to bucket0 + bucket1 + runStatementOnDriver("update " + Table.ACIDTBL + " set b = -1"); + List r = runStatementOnDriver("select * from " + Table.ACIDTBL + " order by a, b"); + int[][] expected = {{0, -1}, {1, -1}, {3, -1}}; + Assert.assertEquals(stringifyValues(expected), r); + } + //@Ignore("see bucket_num_reducers_acid2.q") + @Test + public void testMoreBucketsThanReducers2() throws Exception { + //todo: try using set VerifyNumReducersHook.num.reducers=10; + //see bucket_num_reducers.q bucket_num_reducers2.q + d.destroy(); + HiveConf hc = new HiveConf(hiveConf); + hc.setIntVar(HiveConf.ConfVars.MAXREDUCERS, 2); + //this is used in multiple places, SemanticAnalyzer.getBucketingSortingDest() among others + hc.setIntVar(HiveConf.ConfVars.HADOOPNUMREDUCERS, 2); + d = new Driver(hc); + d.setMaxRows(10000); + runStatementOnDriver("create table fourbuckets (a int, b int) clustered by (a) into 4 buckets stored as orc TBLPROPERTIES ('transactional'='true')"); + //below value for a is bucket id, for b - txn id (logically) + runStatementOnDriver("insert into fourbuckets values(0,1),(1,1)");//txn X write to b0 + b1 + runStatementOnDriver("insert into fourbuckets values(2,2),(3,2)");// txn X + 1 write to b2 + b3 + runStatementOnDriver("insert into fourbuckets values(0,3),(1,3)");//txn X + 2 write to b0 + b1 + runStatementOnDriver("insert into fourbuckets values(2,4),(3,4)");//txn X + 3 write to b2 + b3 + //so with 2 FileSinks and 4 buckets, FS1 should see (0,1),(2,2),(0,3)(2,4) since data is sorted by ROW__ID where tnxid is the first component + //FS2 should see (1,1),(3,2),(1,3),(3,4) + + runStatementOnDriver("update fourbuckets set b = -1"); + List r = runStatementOnDriver("select * from fourbuckets order by a, b"); + int[][] expected = {{0, -1},{0, -1}, {1, -1}, {1, -1}, {2, -1}, {2, -1}, {3, -1}, {3, -1}}; + Assert.assertEquals(stringifyValues(expected), r); + } } diff --git ql/src/test/queries/clientpositive/bucket_num_reducers_acid.q ql/src/test/queries/clientpositive/bucket_num_reducers_acid.q new file mode 100644 index 0000000000..a44668eb49 --- /dev/null +++ ql/src/test/queries/clientpositive/bucket_num_reducers_acid.q @@ -0,0 +1,30 @@ +set hive.support.concurrency=true; +set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; +set hive.exec.mode.local.auto=false; + +set mapred.reduce.tasks = 1; + +-- This test sets number of mapred tasks to 1 for a table with 2 buckets, +-- and uses a post-hook to confirm that 1 tasks were created + +drop table if exists bucket_nr_acid; +create table bucket_nr_acid (a int, b int) clustered by (a) into 2 buckets stored as orc TBLPROPERTIES ('transactional'='true'); +set hive.exec.post.hooks=org.apache.hadoop.hive.ql.hooks.VerifyNumReducersHook; +set VerifyNumReducersHook.num.reducers=1; + +-- txn X write to b1 +insert into bucket_nr_acid values(1,1); +-- txn X + 1 write to bucket0 + b1 +insert into bucket_nr_acid values(0,0),(3,3); + +update bucket_nr_acid set b = -1; +set hive.exec.post.hooks=; +select * from bucket_nr_acid order by a, b; + +drop table bucket_nr_acid; + + + + + + diff --git ql/src/test/queries/clientpositive/bucket_num_reducers_acid2.q ql/src/test/queries/clientpositive/bucket_num_reducers_acid2.q new file mode 100644 index 0000000000..2e6aa6116a --- /dev/null +++ ql/src/test/queries/clientpositive/bucket_num_reducers_acid2.q @@ -0,0 +1,33 @@ +set hive.support.concurrency=true; +set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; +set hive.exec.mode.local.auto=false; + +set mapred.reduce.tasks = 2; + +-- This test sets number of mapred tasks to 2 for a table with 4 buckets, +-- and uses a post-hook to confirm that 1 tasks were created + +drop table if exists bucket_nr_acid2; +create table bucket_nr_acid2 (a int, b int) clustered by (a) into 4 buckets stored as orc TBLPROPERTIES ('transactional'='true'); +set hive.exec.post.hooks=org.apache.hadoop.hive.ql.hooks.VerifyNumReducersHook; +set VerifyNumReducersHook.num.reducers=2; + +-- txn X write to b0 + b1 +insert into bucket_nr_acid2 values(0,1),(1,1); +-- txn X + 1 write to b2 + b3 +insert into bucket_nr_acid2 values(2,2),(3,2); +-- txn X + 2 write to b0 + b1 +insert into bucket_nr_acid2 values(0,3),(1,3); +-- txn X + 3 write to b2 + b3 +insert into bucket_nr_acid2 values(2,4),(3,4); + +-- so with 2 FileSinks and 4 buckets, FS1 should see (0,1),(2,2),(0,3)(2,4) since data is sorted by +-- ROW__ID where tnxid is the first component FS2 should see (1,1),(3,2),(1,3),(3,4) + + +update bucket_nr_acid2 set b = -1; +set hive.exec.post.hooks=; +select * from bucket_nr_acid2 order by a, b; + +drop table bucket_nr_acid2; + diff --git ql/src/test/results/clientpositive/bucket_num_reducers_acid.q.out ql/src/test/results/clientpositive/bucket_num_reducers_acid.q.out new file mode 100644 index 0000000000..8ea23d7ce8 --- /dev/null +++ ql/src/test/results/clientpositive/bucket_num_reducers_acid.q.out @@ -0,0 +1,33 @@ +PREHOOK: query: drop table if exists bucket_nr_acid +PREHOOK: type: DROPTABLE +POSTHOOK: query: drop table if exists bucket_nr_acid +POSTHOOK: type: DROPTABLE +PREHOOK: query: create table bucket_nr_acid (a int, b int) clustered by (a) into 2 buckets stored as orc TBLPROPERTIES ('transactional'='true') +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@bucket_nr_acid +POSTHOOK: query: create table bucket_nr_acid (a int, b int) clustered by (a) into 2 buckets stored as orc TBLPROPERTIES ('transactional'='true') +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@bucket_nr_acid +PREHOOK: query: insert into bucket_nr_acid values(1,1) +PREHOOK: type: QUERY +PREHOOK: Output: default@bucket_nr_acid +PREHOOK: query: insert into bucket_nr_acid values(0,0),(3,3) +PREHOOK: type: QUERY +PREHOOK: Output: default@bucket_nr_acid +PREHOOK: query: update bucket_nr_acid set b = -1 +PREHOOK: type: QUERY +PREHOOK: Input: default@bucket_nr_acid +PREHOOK: Output: default@bucket_nr_acid +PREHOOK: query: select * from bucket_nr_acid order by a, b +PREHOOK: type: QUERY +PREHOOK: Input: default@bucket_nr_acid +#### A masked pattern was here #### +0 -1 +1 -1 +3 -1 +PREHOOK: query: drop table bucket_nr_acid +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@bucket_nr_acid +PREHOOK: Output: default@bucket_nr_acid diff --git ql/src/test/results/clientpositive/bucket_num_reducers_acid2.q.out ql/src/test/results/clientpositive/bucket_num_reducers_acid2.q.out new file mode 100644 index 0000000000..cabb4f7dda --- /dev/null +++ ql/src/test/results/clientpositive/bucket_num_reducers_acid2.q.out @@ -0,0 +1,44 @@ +PREHOOK: query: drop table if exists bucket_nr_acid2 +PREHOOK: type: DROPTABLE +POSTHOOK: query: drop table if exists bucket_nr_acid2 +POSTHOOK: type: DROPTABLE +PREHOOK: query: create table bucket_nr_acid2 (a int, b int) clustered by (a) into 4 buckets stored as orc TBLPROPERTIES ('transactional'='true') +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@bucket_nr_acid2 +POSTHOOK: query: create table bucket_nr_acid2 (a int, b int) clustered by (a) into 4 buckets stored as orc TBLPROPERTIES ('transactional'='true') +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@bucket_nr_acid2 +PREHOOK: query: insert into bucket_nr_acid2 values(0,1),(1,1) +PREHOOK: type: QUERY +PREHOOK: Output: default@bucket_nr_acid2 +PREHOOK: query: insert into bucket_nr_acid2 values(2,2),(3,2) +PREHOOK: type: QUERY +PREHOOK: Output: default@bucket_nr_acid2 +PREHOOK: query: insert into bucket_nr_acid2 values(0,3),(1,3) +PREHOOK: type: QUERY +PREHOOK: Output: default@bucket_nr_acid2 +PREHOOK: query: insert into bucket_nr_acid2 values(2,4),(3,4) +PREHOOK: type: QUERY +PREHOOK: Output: default@bucket_nr_acid2 +PREHOOK: query: update bucket_nr_acid2 set b = -1 +PREHOOK: type: QUERY +PREHOOK: Input: default@bucket_nr_acid2 +PREHOOK: Output: default@bucket_nr_acid2 +PREHOOK: query: select * from bucket_nr_acid2 order by a, b +PREHOOK: type: QUERY +PREHOOK: Input: default@bucket_nr_acid2 +#### A masked pattern was here #### +0 -1 +0 -1 +1 -1 +1 -1 +2 -1 +2 -1 +3 -1 +3 -1 +PREHOOK: query: drop table bucket_nr_acid2 +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@bucket_nr_acid2 +PREHOOK: Output: default@bucket_nr_acid2 diff --git ql/src/test/results/clientpositive/dynpart_sort_optimization_acid.q.out ql/src/test/results/clientpositive/dynpart_sort_optimization_acid.q.out deleted file mode 100644 index 87534b4d8b..0000000000 --- ql/src/test/results/clientpositive/dynpart_sort_optimization_acid.q.out +++ /dev/null @@ -1,1475 +0,0 @@ -PREHOOK: query: -- single level partition, sorted dynamic partition disabled -drop table acid -PREHOOK: type: DROPTABLE -POSTHOOK: query: -- single level partition, sorted dynamic partition disabled -drop table acid -POSTHOOK: type: DROPTABLE -PREHOOK: query: CREATE TABLE acid(key string, value string) PARTITIONED BY(ds string) CLUSTERED BY(key) INTO 2 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true') -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@acid -POSTHOOK: query: CREATE TABLE acid(key string, value string) PARTITIONED BY(ds string) CLUSTERED BY(key) INTO 2 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true') -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@acid -PREHOOK: query: insert into table acid partition(ds) select key,value,ds from srcpart -PREHOOK: type: QUERY -PREHOOK: Input: default@srcpart -PREHOOK: Input: default@srcpart@ds=2008-04-08/hr=11 -PREHOOK: Input: default@srcpart@ds=2008-04-08/hr=12 -PREHOOK: Input: default@srcpart@ds=2008-04-09/hr=11 -PREHOOK: Input: default@srcpart@ds=2008-04-09/hr=12 -PREHOOK: Output: default@acid -POSTHOOK: query: insert into table acid partition(ds) select key,value,ds from srcpart -POSTHOOK: type: QUERY -POSTHOOK: Input: default@srcpart -POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=11 -POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=12 -POSTHOOK: Input: default@srcpart@ds=2008-04-09/hr=11 -POSTHOOK: Input: default@srcpart@ds=2008-04-09/hr=12 -POSTHOOK: Output: default@acid@ds=2008-04-08 -POSTHOOK: Output: default@acid@ds=2008-04-09 -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08).key SIMPLE [(srcpart)srcpart.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08).value SIMPLE [(srcpart)srcpart.FieldSchema(name:value, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-09).key SIMPLE [(srcpart)srcpart.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-09).value SIMPLE [(srcpart)srcpart.FieldSchema(name:value, type:string, comment:default), ] -PREHOOK: query: select count(*) from acid where ds='2008-04-08' -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -1000 -PREHOOK: query: insert into table acid partition(ds='2008-04-08') values("foo", "bar") -PREHOOK: type: QUERY -PREHOOK: Output: default@acid@ds=2008-04-08 -POSTHOOK: query: insert into table acid partition(ds='2008-04-08') values("foo", "bar") -POSTHOOK: type: QUERY -POSTHOOK: Output: default@acid@ds=2008-04-08 -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08).key SIMPLE [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col1, type:string, comment:), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08).value SIMPLE [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col2, type:string, comment:), ] -PREHOOK: query: select count(*) from acid where ds='2008-04-08' -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -1001 -PREHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' -PREHOOK: type: QUERY -POSTHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' -POSTHOOK: type: QUERY -STAGE DEPENDENCIES: - Stage-1 is a root stage - Stage-0 depends on stages: Stage-1 - Stage-2 depends on stages: Stage-0 - -STAGE PLANS: - Stage: Stage-1 - Map Reduce - Map Operator Tree: - TableScan - alias: acid - Statistics: Num rows: 1720 Data size: 5162 Basic stats: COMPLETE Column stats: NONE - Filter Operator - predicate: (key = 'foo') (type: boolean) - Statistics: Num rows: 860 Data size: 2581 Basic stats: COMPLETE Column stats: NONE - Select Operator - expressions: ROW__ID (type: struct) - outputColumnNames: _col0 - Statistics: Num rows: 860 Data size: 2581 Basic stats: COMPLETE Column stats: NONE - Reduce Output Operator - key expressions: _col0 (type: struct) - sort order: + - Map-reduce partition columns: UDFToInteger(_col0) (type: int) - Statistics: Num rows: 860 Data size: 2581 Basic stats: COMPLETE Column stats: NONE - Reduce Operator Tree: - Select Operator - expressions: KEY.reducesinkkey0 (type: struct), 'foo' (type: string), 'bar' (type: string), '2008-04-08' (type: string) - outputColumnNames: _col0, _col1, _col2, _col3 - Statistics: Num rows: 860 Data size: 2581 Basic stats: COMPLETE Column stats: NONE - File Output Operator - compressed: false - Statistics: Num rows: 860 Data size: 2581 Basic stats: COMPLETE Column stats: NONE - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-0 - Move Operator - tables: - partition: - ds - replace: false - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-2 - Stats-Aggr Operator - -PREHOOK: query: update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08 -PREHOOK: Output: default@acid@ds=2008-04-08 -POSTHOOK: query: update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08 -POSTHOOK: Output: default@acid@ds=2008-04-08 -PREHOOK: query: select count(*) from acid where ds='2008-04-08' -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -1001 -PREHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds in ('2008-04-08') -PREHOOK: type: QUERY -POSTHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds in ('2008-04-08') -POSTHOOK: type: QUERY -STAGE DEPENDENCIES: - Stage-1 is a root stage - Stage-0 depends on stages: Stage-1 - Stage-2 depends on stages: Stage-0 - -STAGE PLANS: - Stage: Stage-1 - Map Reduce - Map Operator Tree: - TableScan - alias: acid - Statistics: Num rows: 1940 Data size: 5820 Basic stats: COMPLETE Column stats: NONE - Filter Operator - predicate: (key = 'foo') (type: boolean) - Statistics: Num rows: 970 Data size: 2910 Basic stats: COMPLETE Column stats: NONE - Select Operator - expressions: ROW__ID (type: struct), ds (type: string) - outputColumnNames: _col0, _col3 - Statistics: Num rows: 970 Data size: 2910 Basic stats: COMPLETE Column stats: NONE - Reduce Output Operator - key expressions: _col0 (type: struct) - sort order: + - Map-reduce partition columns: UDFToInteger(_col0) (type: int) - Statistics: Num rows: 970 Data size: 2910 Basic stats: COMPLETE Column stats: NONE - value expressions: _col3 (type: string) - Reduce Operator Tree: - Select Operator - expressions: KEY.reducesinkkey0 (type: struct), 'foo' (type: string), 'bar' (type: string), VALUE._col1 (type: string) - outputColumnNames: _col0, _col1, _col2, _col3 - Statistics: Num rows: 970 Data size: 2910 Basic stats: COMPLETE Column stats: NONE - File Output Operator - compressed: false - Statistics: Num rows: 970 Data size: 2910 Basic stats: COMPLETE Column stats: NONE - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-0 - Move Operator - tables: - partition: - ds - replace: false - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-2 - Stats-Aggr Operator - -PREHOOK: query: update acid set value = 'bar' where key = 'foo' and ds in ('2008-04-08') -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08 -PREHOOK: Output: default@acid@ds=2008-04-08 -POSTHOOK: query: update acid set value = 'bar' where key = 'foo' and ds in ('2008-04-08') -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08 -POSTHOOK: Output: default@acid@ds=2008-04-08 -PREHOOK: query: select count(*) from acid where ds in ('2008-04-08') -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds in ('2008-04-08') -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -1001 -PREHOOK: query: delete from acid where key = 'foo' and ds='2008-04-08' -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08 -PREHOOK: Output: default@acid@ds=2008-04-08 -POSTHOOK: query: delete from acid where key = 'foo' and ds='2008-04-08' -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08 -POSTHOOK: Output: default@acid@ds=2008-04-08 -PREHOOK: query: select count(*) from acid where ds='2008-04-08' -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -1000 -PREHOOK: query: -- single level partition, sorted dynamic partition enabled -drop table acid -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@acid -PREHOOK: Output: default@acid -POSTHOOK: query: -- single level partition, sorted dynamic partition enabled -drop table acid -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@acid -POSTHOOK: Output: default@acid -PREHOOK: query: CREATE TABLE acid(key string, value string) PARTITIONED BY(ds string) CLUSTERED BY(key) INTO 2 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true') -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@acid -POSTHOOK: query: CREATE TABLE acid(key string, value string) PARTITIONED BY(ds string) CLUSTERED BY(key) INTO 2 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true') -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@acid -PREHOOK: query: insert into table acid partition(ds) select key,value,ds from srcpart -PREHOOK: type: QUERY -PREHOOK: Input: default@srcpart -PREHOOK: Input: default@srcpart@ds=2008-04-08/hr=11 -PREHOOK: Input: default@srcpart@ds=2008-04-08/hr=12 -PREHOOK: Input: default@srcpart@ds=2008-04-09/hr=11 -PREHOOK: Input: default@srcpart@ds=2008-04-09/hr=12 -PREHOOK: Output: default@acid -POSTHOOK: query: insert into table acid partition(ds) select key,value,ds from srcpart -POSTHOOK: type: QUERY -POSTHOOK: Input: default@srcpart -POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=11 -POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=12 -POSTHOOK: Input: default@srcpart@ds=2008-04-09/hr=11 -POSTHOOK: Input: default@srcpart@ds=2008-04-09/hr=12 -POSTHOOK: Output: default@acid@ds=2008-04-08 -POSTHOOK: Output: default@acid@ds=2008-04-09 -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08).key SIMPLE [(srcpart)srcpart.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08).value SIMPLE [(srcpart)srcpart.FieldSchema(name:value, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-09).key SIMPLE [(srcpart)srcpart.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-09).value SIMPLE [(srcpart)srcpart.FieldSchema(name:value, type:string, comment:default), ] -PREHOOK: query: select count(*) from acid where ds='2008-04-08' -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -1000 -PREHOOK: query: insert into table acid partition(ds='2008-04-08') values("foo", "bar") -PREHOOK: type: QUERY -PREHOOK: Output: default@acid@ds=2008-04-08 -POSTHOOK: query: insert into table acid partition(ds='2008-04-08') values("foo", "bar") -POSTHOOK: type: QUERY -POSTHOOK: Output: default@acid@ds=2008-04-08 -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08).key SIMPLE [(values__tmp__table__2)values__tmp__table__2.FieldSchema(name:tmp_values_col1, type:string, comment:), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08).value SIMPLE [(values__tmp__table__2)values__tmp__table__2.FieldSchema(name:tmp_values_col2, type:string, comment:), ] -PREHOOK: query: select count(*) from acid where ds='2008-04-08' -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -1001 -PREHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' -PREHOOK: type: QUERY -POSTHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' -POSTHOOK: type: QUERY -STAGE DEPENDENCIES: - Stage-1 is a root stage - Stage-0 depends on stages: Stage-1 - Stage-2 depends on stages: Stage-0 - -STAGE PLANS: - Stage: Stage-1 - Map Reduce - Map Operator Tree: - TableScan - alias: acid - Statistics: Num rows: 1566 Data size: 4698 Basic stats: COMPLETE Column stats: NONE - Filter Operator - predicate: (key = 'foo') (type: boolean) - Statistics: Num rows: 783 Data size: 2349 Basic stats: COMPLETE Column stats: NONE - Select Operator - expressions: ROW__ID (type: struct) - outputColumnNames: _col0 - Statistics: Num rows: 783 Data size: 2349 Basic stats: COMPLETE Column stats: NONE - Reduce Output Operator - key expressions: _col0 (type: struct) - sort order: + - Map-reduce partition columns: UDFToInteger(_col0) (type: int) - Statistics: Num rows: 783 Data size: 2349 Basic stats: COMPLETE Column stats: NONE - Reduce Operator Tree: - Select Operator - expressions: KEY.reducesinkkey0 (type: struct), 'foo' (type: string), 'bar' (type: string), '2008-04-08' (type: string) - outputColumnNames: _col0, _col1, _col2, _col3 - Statistics: Num rows: 783 Data size: 2349 Basic stats: COMPLETE Column stats: NONE - File Output Operator - compressed: false - Statistics: Num rows: 783 Data size: 2349 Basic stats: COMPLETE Column stats: NONE - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-0 - Move Operator - tables: - partition: - ds - replace: false - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-2 - Stats-Aggr Operator - -PREHOOK: query: update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08 -PREHOOK: Output: default@acid@ds=2008-04-08 -POSTHOOK: query: update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08 -POSTHOOK: Output: default@acid@ds=2008-04-08 -PREHOOK: query: select count(*) from acid where ds='2008-04-08' -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -1001 -PREHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds in ('2008-04-08') -PREHOOK: type: QUERY -POSTHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds in ('2008-04-08') -POSTHOOK: type: QUERY -STAGE DEPENDENCIES: - Stage-1 is a root stage - Stage-0 depends on stages: Stage-1 - Stage-2 depends on stages: Stage-0 - -STAGE PLANS: - Stage: Stage-1 - Map Reduce - Map Operator Tree: - TableScan - alias: acid - Statistics: Num rows: 1785 Data size: 5357 Basic stats: COMPLETE Column stats: NONE - Filter Operator - predicate: (key = 'foo') (type: boolean) - Statistics: Num rows: 892 Data size: 2676 Basic stats: COMPLETE Column stats: NONE - Select Operator - expressions: ROW__ID (type: struct), ds (type: string) - outputColumnNames: _col0, _col3 - Statistics: Num rows: 892 Data size: 2676 Basic stats: COMPLETE Column stats: NONE - Reduce Output Operator - key expressions: _col3 (type: string), '_bucket_number' (type: string), _col0 (type: struct) - sort order: +++ - Map-reduce partition columns: _col3 (type: string) - Statistics: Num rows: 892 Data size: 2676 Basic stats: COMPLETE Column stats: NONE - Reduce Operator Tree: - Select Operator - expressions: KEY._col0 (type: struct), 'foo' (type: string), 'bar' (type: string), KEY._col3 (type: string), KEY.'_bucket_number' (type: string) - outputColumnNames: _col0, _col1, _col2, _col3, '_bucket_number' - Statistics: Num rows: 892 Data size: 2676 Basic stats: COMPLETE Column stats: NONE - File Output Operator - compressed: false - Statistics: Num rows: 892 Data size: 2676 Basic stats: COMPLETE Column stats: NONE - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-0 - Move Operator - tables: - partition: - ds - replace: false - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-2 - Stats-Aggr Operator - -PREHOOK: query: update acid set value = 'bar' where key = 'foo' and ds in ('2008-04-08') -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08 -PREHOOK: Output: default@acid@ds=2008-04-08 -POSTHOOK: query: update acid set value = 'bar' where key = 'foo' and ds in ('2008-04-08') -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08 -POSTHOOK: Output: default@acid@ds=2008-04-08 -PREHOOK: query: select count(*) from acid where ds in ('2008-04-08') -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds in ('2008-04-08') -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -1001 -PREHOOK: query: delete from acid where key = 'foo' and ds='2008-04-08' -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08 -PREHOOK: Output: default@acid@ds=2008-04-08 -POSTHOOK: query: delete from acid where key = 'foo' and ds='2008-04-08' -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08 -POSTHOOK: Output: default@acid@ds=2008-04-08 -PREHOOK: query: select count(*) from acid where ds='2008-04-08' -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08 -#### A masked pattern was here #### -1000 -PREHOOK: query: -- 2 level partition, sorted dynamic partition disabled -drop table acid -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@acid -PREHOOK: Output: default@acid -POSTHOOK: query: -- 2 level partition, sorted dynamic partition disabled -drop table acid -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@acid -POSTHOOK: Output: default@acid -PREHOOK: query: CREATE TABLE acid(key string, value string) PARTITIONED BY(ds string, hr int) CLUSTERED BY(key) INTO 2 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true') -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@acid -POSTHOOK: query: CREATE TABLE acid(key string, value string) PARTITIONED BY(ds string, hr int) CLUSTERED BY(key) INTO 2 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true') -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@acid -PREHOOK: query: insert into table acid partition(ds,hr) select * from srcpart -PREHOOK: type: QUERY -PREHOOK: Input: default@srcpart -PREHOOK: Input: default@srcpart@ds=2008-04-08/hr=11 -PREHOOK: Input: default@srcpart@ds=2008-04-08/hr=12 -PREHOOK: Input: default@srcpart@ds=2008-04-09/hr=11 -PREHOOK: Input: default@srcpart@ds=2008-04-09/hr=12 -PREHOOK: Output: default@acid -POSTHOOK: query: insert into table acid partition(ds,hr) select * from srcpart -POSTHOOK: type: QUERY -POSTHOOK: Input: default@srcpart -POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=11 -POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=12 -POSTHOOK: Input: default@srcpart@ds=2008-04-09/hr=11 -POSTHOOK: Input: default@srcpart@ds=2008-04-09/hr=12 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=12 -POSTHOOK: Output: default@acid@ds=2008-04-09/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-09/hr=12 -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08,hr=11).key SIMPLE [(srcpart)srcpart.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08,hr=11).value SIMPLE [(srcpart)srcpart.FieldSchema(name:value, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08,hr=12).key SIMPLE [(srcpart)srcpart.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08,hr=12).value SIMPLE [(srcpart)srcpart.FieldSchema(name:value, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-09,hr=11).key SIMPLE [(srcpart)srcpart.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-09,hr=11).value SIMPLE [(srcpart)srcpart.FieldSchema(name:value, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-09,hr=12).key SIMPLE [(srcpart)srcpart.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-09,hr=12).value SIMPLE [(srcpart)srcpart.FieldSchema(name:value, type:string, comment:default), ] -PREHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -500 -PREHOOK: query: insert into table acid partition(ds='2008-04-08',hr=11) values("foo", "bar") -PREHOOK: type: QUERY -PREHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: query: insert into table acid partition(ds='2008-04-08',hr=11) values("foo", "bar") -POSTHOOK: type: QUERY -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08,hr=11).key SIMPLE [(values__tmp__table__3)values__tmp__table__3.FieldSchema(name:tmp_values_col1, type:string, comment:), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08,hr=11).value SIMPLE [(values__tmp__table__3)values__tmp__table__3.FieldSchema(name:tmp_values_col2, type:string, comment:), ] -PREHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -501 -PREHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -POSTHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -STAGE DEPENDENCIES: - Stage-1 is a root stage - Stage-0 depends on stages: Stage-1 - Stage-2 depends on stages: Stage-0 - -STAGE PLANS: - Stage: Stage-1 - Map Reduce - Map Operator Tree: - TableScan - alias: acid - Statistics: Num rows: 1548 Data size: 4644 Basic stats: COMPLETE Column stats: NONE - Filter Operator - predicate: (key = 'foo') (type: boolean) - Statistics: Num rows: 774 Data size: 2322 Basic stats: COMPLETE Column stats: NONE - Select Operator - expressions: ROW__ID (type: struct) - outputColumnNames: _col0 - Statistics: Num rows: 774 Data size: 2322 Basic stats: COMPLETE Column stats: NONE - Reduce Output Operator - key expressions: _col0 (type: struct) - sort order: + - Map-reduce partition columns: UDFToInteger(_col0) (type: int) - Statistics: Num rows: 774 Data size: 2322 Basic stats: COMPLETE Column stats: NONE - Reduce Operator Tree: - Select Operator - expressions: KEY.reducesinkkey0 (type: struct), 'foo' (type: string), 'bar' (type: string), '2008-04-08' (type: string), 11 (type: int) - outputColumnNames: _col0, _col1, _col2, _col3, _col4 - Statistics: Num rows: 774 Data size: 2322 Basic stats: COMPLETE Column stats: NONE - File Output Operator - compressed: false - Statistics: Num rows: 774 Data size: 2322 Basic stats: COMPLETE Column stats: NONE - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-0 - Move Operator - tables: - partition: - ds - hr - replace: false - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-2 - Stats-Aggr Operator - -PREHOOK: query: update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: query: update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=11 -PREHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -501 -PREHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr>=11 -PREHOOK: type: QUERY -POSTHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr>=11 -POSTHOOK: type: QUERY -STAGE DEPENDENCIES: - Stage-1 is a root stage - Stage-0 depends on stages: Stage-1 - Stage-2 depends on stages: Stage-0 - -STAGE PLANS: - Stage: Stage-1 - Map Reduce - Map Operator Tree: - TableScan - alias: acid - Statistics: Num rows: 3033 Data size: 9100 Basic stats: COMPLETE Column stats: NONE - Filter Operator - predicate: (key = 'foo') (type: boolean) - Statistics: Num rows: 1516 Data size: 4548 Basic stats: COMPLETE Column stats: NONE - Select Operator - expressions: ROW__ID (type: struct), hr (type: int) - outputColumnNames: _col0, _col4 - Statistics: Num rows: 1516 Data size: 4548 Basic stats: COMPLETE Column stats: NONE - Reduce Output Operator - key expressions: _col0 (type: struct) - sort order: + - Map-reduce partition columns: UDFToInteger(_col0) (type: int) - Statistics: Num rows: 1516 Data size: 4548 Basic stats: COMPLETE Column stats: NONE - value expressions: _col4 (type: int) - Reduce Operator Tree: - Select Operator - expressions: KEY.reducesinkkey0 (type: struct), 'foo' (type: string), 'bar' (type: string), '2008-04-08' (type: string), VALUE._col2 (type: int) - outputColumnNames: _col0, _col1, _col2, _col3, _col4 - Statistics: Num rows: 1516 Data size: 4548 Basic stats: COMPLETE Column stats: NONE - File Output Operator - compressed: false - Statistics: Num rows: 1516 Data size: 4548 Basic stats: COMPLETE Column stats: NONE - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-0 - Move Operator - tables: - partition: - ds - hr - replace: false - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-2 - Stats-Aggr Operator - -PREHOOK: query: update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr>=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Input: default@acid@ds=2008-04-08/hr=12 -PREHOOK: Output: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Output: default@acid@ds=2008-04-08/hr=12 -POSTHOOK: query: update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr>=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=12 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=12 -PREHOOK: query: select count(*) from acid where ds='2008-04-08' and hr>=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Input: default@acid@ds=2008-04-08/hr=12 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' and hr>=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=12 -#### A masked pattern was here #### -1001 -PREHOOK: query: delete from acid where key = 'foo' and ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: query: delete from acid where key = 'foo' and ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=11 -PREHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -500 -PREHOOK: query: -- test with bucketing column not in select list -explain -delete from acid where value = 'bar' -PREHOOK: type: QUERY -POSTHOOK: query: -- test with bucketing column not in select list -explain -delete from acid where value = 'bar' -POSTHOOK: type: QUERY -STAGE DEPENDENCIES: - Stage-1 is a root stage - Stage-0 depends on stages: Stage-1 - Stage-2 depends on stages: Stage-0 - -STAGE PLANS: - Stage: Stage-1 - Map Reduce - Map Operator Tree: - TableScan - alias: acid - Statistics: Num rows: 5958 Data size: 17874 Basic stats: COMPLETE Column stats: NONE - Filter Operator - predicate: (value = 'bar') (type: boolean) - Statistics: Num rows: 2979 Data size: 8937 Basic stats: COMPLETE Column stats: NONE - Select Operator - expressions: ROW__ID (type: struct), ds (type: string), hr (type: int) - outputColumnNames: _col0, _col1, _col2 - Statistics: Num rows: 2979 Data size: 8937 Basic stats: COMPLETE Column stats: NONE - Reduce Output Operator - key expressions: _col0 (type: struct) - sort order: + - Map-reduce partition columns: UDFToInteger(_col0) (type: int) - Statistics: Num rows: 2979 Data size: 8937 Basic stats: COMPLETE Column stats: NONE - value expressions: _col1 (type: string), _col2 (type: int) - Reduce Operator Tree: - Select Operator - expressions: KEY.reducesinkkey0 (type: struct), VALUE._col0 (type: string), VALUE._col1 (type: int) - outputColumnNames: _col0, _col1, _col2 - Statistics: Num rows: 2979 Data size: 8937 Basic stats: COMPLETE Column stats: NONE - File Output Operator - compressed: false - Statistics: Num rows: 2979 Data size: 8937 Basic stats: COMPLETE Column stats: NONE - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-0 - Move Operator - tables: - partition: - ds - hr - replace: false - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-2 - Stats-Aggr Operator - -PREHOOK: query: delete from acid where value = 'bar' -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Input: default@acid@ds=2008-04-08/hr=12 -PREHOOK: Input: default@acid@ds=2008-04-09/hr=11 -PREHOOK: Input: default@acid@ds=2008-04-09/hr=12 -PREHOOK: Output: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Output: default@acid@ds=2008-04-08/hr=12 -PREHOOK: Output: default@acid@ds=2008-04-09/hr=11 -PREHOOK: Output: default@acid@ds=2008-04-09/hr=12 -POSTHOOK: query: delete from acid where value = 'bar' -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=12 -POSTHOOK: Input: default@acid@ds=2008-04-09/hr=11 -POSTHOOK: Input: default@acid@ds=2008-04-09/hr=12 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=12 -POSTHOOK: Output: default@acid@ds=2008-04-09/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-09/hr=12 -PREHOOK: query: select count(*) from acid -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Input: default@acid@ds=2008-04-08/hr=12 -PREHOOK: Input: default@acid@ds=2008-04-09/hr=11 -PREHOOK: Input: default@acid@ds=2008-04-09/hr=12 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=12 -POSTHOOK: Input: default@acid@ds=2008-04-09/hr=11 -POSTHOOK: Input: default@acid@ds=2008-04-09/hr=12 -#### A masked pattern was here #### -2000 -PREHOOK: query: -- 2 level partition, sorted dynamic partition enabled -drop table acid -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@acid -PREHOOK: Output: default@acid -POSTHOOK: query: -- 2 level partition, sorted dynamic partition enabled -drop table acid -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@acid -POSTHOOK: Output: default@acid -PREHOOK: query: CREATE TABLE acid(key string, value string) PARTITIONED BY(ds string, hr int) CLUSTERED BY(key) INTO 2 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true') -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@acid -POSTHOOK: query: CREATE TABLE acid(key string, value string) PARTITIONED BY(ds string, hr int) CLUSTERED BY(key) INTO 2 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true') -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@acid -PREHOOK: query: insert into table acid partition(ds,hr) select * from srcpart -PREHOOK: type: QUERY -PREHOOK: Input: default@srcpart -PREHOOK: Input: default@srcpart@ds=2008-04-08/hr=11 -PREHOOK: Input: default@srcpart@ds=2008-04-08/hr=12 -PREHOOK: Input: default@srcpart@ds=2008-04-09/hr=11 -PREHOOK: Input: default@srcpart@ds=2008-04-09/hr=12 -PREHOOK: Output: default@acid -POSTHOOK: query: insert into table acid partition(ds,hr) select * from srcpart -POSTHOOK: type: QUERY -POSTHOOK: Input: default@srcpart -POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=11 -POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=12 -POSTHOOK: Input: default@srcpart@ds=2008-04-09/hr=11 -POSTHOOK: Input: default@srcpart@ds=2008-04-09/hr=12 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=12 -POSTHOOK: Output: default@acid@ds=2008-04-09/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-09/hr=12 -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08,hr=11).key SIMPLE [(srcpart)srcpart.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08,hr=11).value SIMPLE [(srcpart)srcpart.FieldSchema(name:value, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08,hr=12).key SIMPLE [(srcpart)srcpart.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08,hr=12).value SIMPLE [(srcpart)srcpart.FieldSchema(name:value, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-09,hr=11).key SIMPLE [(srcpart)srcpart.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-09,hr=11).value SIMPLE [(srcpart)srcpart.FieldSchema(name:value, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-09,hr=12).key SIMPLE [(srcpart)srcpart.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-09,hr=12).value SIMPLE [(srcpart)srcpart.FieldSchema(name:value, type:string, comment:default), ] -PREHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -500 -PREHOOK: query: insert into table acid partition(ds='2008-04-08',hr=11) values("foo", "bar") -PREHOOK: type: QUERY -PREHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: query: insert into table acid partition(ds='2008-04-08',hr=11) values("foo", "bar") -POSTHOOK: type: QUERY -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08,hr=11).key SIMPLE [(values__tmp__table__4)values__tmp__table__4.FieldSchema(name:tmp_values_col1, type:string, comment:), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08,hr=11).value SIMPLE [(values__tmp__table__4)values__tmp__table__4.FieldSchema(name:tmp_values_col2, type:string, comment:), ] -PREHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -501 -PREHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -POSTHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -STAGE DEPENDENCIES: - Stage-1 is a root stage - Stage-0 depends on stages: Stage-1 - Stage-2 depends on stages: Stage-0 - -STAGE PLANS: - Stage: Stage-1 - Map Reduce - Map Operator Tree: - TableScan - alias: acid - Statistics: Num rows: 1548 Data size: 4644 Basic stats: COMPLETE Column stats: NONE - Filter Operator - predicate: (key = 'foo') (type: boolean) - Statistics: Num rows: 774 Data size: 2322 Basic stats: COMPLETE Column stats: NONE - Select Operator - expressions: ROW__ID (type: struct) - outputColumnNames: _col0 - Statistics: Num rows: 774 Data size: 2322 Basic stats: COMPLETE Column stats: NONE - Reduce Output Operator - key expressions: _col0 (type: struct) - sort order: + - Map-reduce partition columns: UDFToInteger(_col0) (type: int) - Statistics: Num rows: 774 Data size: 2322 Basic stats: COMPLETE Column stats: NONE - Reduce Operator Tree: - Select Operator - expressions: KEY.reducesinkkey0 (type: struct), 'foo' (type: string), 'bar' (type: string), '2008-04-08' (type: string), 11 (type: int) - outputColumnNames: _col0, _col1, _col2, _col3, _col4 - Statistics: Num rows: 774 Data size: 2322 Basic stats: COMPLETE Column stats: NONE - File Output Operator - compressed: false - Statistics: Num rows: 774 Data size: 2322 Basic stats: COMPLETE Column stats: NONE - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-0 - Move Operator - tables: - partition: - ds - hr - replace: false - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-2 - Stats-Aggr Operator - -PREHOOK: query: update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: query: update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=11 -PREHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -501 -PREHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr>=11 -PREHOOK: type: QUERY -POSTHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr>=11 -POSTHOOK: type: QUERY -STAGE DEPENDENCIES: - Stage-1 is a root stage - Stage-0 depends on stages: Stage-1 - Stage-2 depends on stages: Stage-0 - -STAGE PLANS: - Stage: Stage-1 - Map Reduce - Map Operator Tree: - TableScan - alias: acid - Statistics: Num rows: 3034 Data size: 9103 Basic stats: COMPLETE Column stats: NONE - Filter Operator - predicate: (key = 'foo') (type: boolean) - Statistics: Num rows: 1517 Data size: 4551 Basic stats: COMPLETE Column stats: NONE - Select Operator - expressions: ROW__ID (type: struct), hr (type: int) - outputColumnNames: _col0, _col4 - Statistics: Num rows: 1517 Data size: 4551 Basic stats: COMPLETE Column stats: NONE - Reduce Output Operator - key expressions: '2008-04-08' (type: string), _col4 (type: int), '_bucket_number' (type: string), _col0 (type: struct) - sort order: ++++ - Map-reduce partition columns: '2008-04-08' (type: string), _col4 (type: int) - Statistics: Num rows: 1517 Data size: 4551 Basic stats: COMPLETE Column stats: NONE - Reduce Operator Tree: - Select Operator - expressions: KEY._col0 (type: struct), 'foo' (type: string), 'bar' (type: string), '2008-04-08' (type: string), KEY._col4 (type: int), KEY.'_bucket_number' (type: string) - outputColumnNames: _col0, _col1, _col2, _col3, _col4, '_bucket_number' - Statistics: Num rows: 1517 Data size: 4551 Basic stats: COMPLETE Column stats: NONE - File Output Operator - compressed: false - Statistics: Num rows: 1517 Data size: 4551 Basic stats: COMPLETE Column stats: NONE - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-0 - Move Operator - tables: - partition: - ds - hr - replace: false - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-2 - Stats-Aggr Operator - -PREHOOK: query: update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr>=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Input: default@acid@ds=2008-04-08/hr=12 -PREHOOK: Output: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Output: default@acid@ds=2008-04-08/hr=12 -POSTHOOK: query: update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr>=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=12 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=12 -PREHOOK: query: select count(*) from acid where ds='2008-04-08' and hr>=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Input: default@acid@ds=2008-04-08/hr=12 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' and hr>=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=12 -#### A masked pattern was here #### -1001 -PREHOOK: query: delete from acid where key = 'foo' and ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: query: delete from acid where key = 'foo' and ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=11 -PREHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -500 -PREHOOK: query: -- test with bucketing column not in select list -explain -delete from acid where value = 'bar' -PREHOOK: type: QUERY -POSTHOOK: query: -- test with bucketing column not in select list -explain -delete from acid where value = 'bar' -POSTHOOK: type: QUERY -STAGE DEPENDENCIES: - Stage-1 is a root stage - Stage-0 depends on stages: Stage-1 - Stage-2 depends on stages: Stage-0 - -STAGE PLANS: - Stage: Stage-1 - Map Reduce - Map Operator Tree: - TableScan - alias: acid - Statistics: Num rows: 5958 Data size: 17875 Basic stats: COMPLETE Column stats: NONE - Filter Operator - predicate: (value = 'bar') (type: boolean) - Statistics: Num rows: 2979 Data size: 8937 Basic stats: COMPLETE Column stats: NONE - Select Operator - expressions: ROW__ID (type: struct), ds (type: string), hr (type: int) - outputColumnNames: _col0, _col1, _col2 - Statistics: Num rows: 2979 Data size: 8937 Basic stats: COMPLETE Column stats: NONE - Reduce Output Operator - key expressions: _col1 (type: string), _col2 (type: int), '_bucket_number' (type: string), _col0 (type: struct) - sort order: ++++ - Map-reduce partition columns: _col1 (type: string), _col2 (type: int) - Statistics: Num rows: 2979 Data size: 8937 Basic stats: COMPLETE Column stats: NONE - Reduce Operator Tree: - Select Operator - expressions: KEY._col0 (type: struct), KEY._col1 (type: string), KEY._col2 (type: int), KEY.'_bucket_number' (type: string) - outputColumnNames: _col0, _col1, _col2, '_bucket_number' - Statistics: Num rows: 2979 Data size: 8937 Basic stats: COMPLETE Column stats: NONE - File Output Operator - compressed: false - Statistics: Num rows: 2979 Data size: 8937 Basic stats: COMPLETE Column stats: NONE - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-0 - Move Operator - tables: - partition: - ds - hr - replace: false - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-2 - Stats-Aggr Operator - -PREHOOK: query: delete from acid where value = 'bar' -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Input: default@acid@ds=2008-04-08/hr=12 -PREHOOK: Input: default@acid@ds=2008-04-09/hr=11 -PREHOOK: Input: default@acid@ds=2008-04-09/hr=12 -PREHOOK: Output: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Output: default@acid@ds=2008-04-08/hr=12 -PREHOOK: Output: default@acid@ds=2008-04-09/hr=11 -PREHOOK: Output: default@acid@ds=2008-04-09/hr=12 -POSTHOOK: query: delete from acid where value = 'bar' -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=12 -POSTHOOK: Input: default@acid@ds=2008-04-09/hr=11 -POSTHOOK: Input: default@acid@ds=2008-04-09/hr=12 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=12 -POSTHOOK: Output: default@acid@ds=2008-04-09/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-09/hr=12 -PREHOOK: query: select count(*) from acid -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Input: default@acid@ds=2008-04-08/hr=12 -PREHOOK: Input: default@acid@ds=2008-04-09/hr=11 -PREHOOK: Input: default@acid@ds=2008-04-09/hr=12 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=12 -POSTHOOK: Input: default@acid@ds=2008-04-09/hr=11 -POSTHOOK: Input: default@acid@ds=2008-04-09/hr=12 -#### A masked pattern was here #### -2000 -PREHOOK: query: -- 2 level partition, sorted dynamic partition enabled, constant propagation disabled -drop table acid -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@acid -PREHOOK: Output: default@acid -POSTHOOK: query: -- 2 level partition, sorted dynamic partition enabled, constant propagation disabled -drop table acid -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@acid -POSTHOOK: Output: default@acid -PREHOOK: query: CREATE TABLE acid(key string, value string) PARTITIONED BY(ds string, hr int) CLUSTERED BY(key) INTO 2 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true') -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@acid -POSTHOOK: query: CREATE TABLE acid(key string, value string) PARTITIONED BY(ds string, hr int) CLUSTERED BY(key) INTO 2 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true') -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@acid -PREHOOK: query: insert into table acid partition(ds,hr) select * from srcpart -PREHOOK: type: QUERY -PREHOOK: Input: default@srcpart -PREHOOK: Input: default@srcpart@ds=2008-04-08/hr=11 -PREHOOK: Input: default@srcpart@ds=2008-04-08/hr=12 -PREHOOK: Input: default@srcpart@ds=2008-04-09/hr=11 -PREHOOK: Input: default@srcpart@ds=2008-04-09/hr=12 -PREHOOK: Output: default@acid -POSTHOOK: query: insert into table acid partition(ds,hr) select * from srcpart -POSTHOOK: type: QUERY -POSTHOOK: Input: default@srcpart -POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=11 -POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=12 -POSTHOOK: Input: default@srcpart@ds=2008-04-09/hr=11 -POSTHOOK: Input: default@srcpart@ds=2008-04-09/hr=12 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=12 -POSTHOOK: Output: default@acid@ds=2008-04-09/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-09/hr=12 -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08,hr=11).key SIMPLE [(srcpart)srcpart.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08,hr=11).value SIMPLE [(srcpart)srcpart.FieldSchema(name:value, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08,hr=12).key SIMPLE [(srcpart)srcpart.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08,hr=12).value SIMPLE [(srcpart)srcpart.FieldSchema(name:value, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-09,hr=11).key SIMPLE [(srcpart)srcpart.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-09,hr=11).value SIMPLE [(srcpart)srcpart.FieldSchema(name:value, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-09,hr=12).key SIMPLE [(srcpart)srcpart.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-09,hr=12).value SIMPLE [(srcpart)srcpart.FieldSchema(name:value, type:string, comment:default), ] -PREHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -500 -PREHOOK: query: insert into table acid partition(ds='2008-04-08',hr=11) values("foo", "bar") -PREHOOK: type: QUERY -PREHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: query: insert into table acid partition(ds='2008-04-08',hr=11) values("foo", "bar") -POSTHOOK: type: QUERY -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08,hr=11).key SIMPLE [(values__tmp__table__5)values__tmp__table__5.FieldSchema(name:tmp_values_col1, type:string, comment:), ] -POSTHOOK: Lineage: acid PARTITION(ds=2008-04-08,hr=11).value SIMPLE [(values__tmp__table__5)values__tmp__table__5.FieldSchema(name:tmp_values_col2, type:string, comment:), ] -PREHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -501 -PREHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -POSTHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -STAGE DEPENDENCIES: - Stage-1 is a root stage - Stage-0 depends on stages: Stage-1 - Stage-2 depends on stages: Stage-0 - -STAGE PLANS: - Stage: Stage-1 - Map Reduce - Map Operator Tree: - TableScan - alias: acid - Statistics: Num rows: 46 Data size: 4644 Basic stats: COMPLETE Column stats: NONE - Filter Operator - predicate: (key = 'foo') (type: boolean) - Statistics: Num rows: 23 Data size: 2322 Basic stats: COMPLETE Column stats: NONE - Select Operator - expressions: ROW__ID (type: struct), key (type: string), ds (type: string), hr (type: int) - outputColumnNames: _col0, _col1, _col3, _col4 - Statistics: Num rows: 23 Data size: 2322 Basic stats: COMPLETE Column stats: NONE - Reduce Output Operator - key expressions: _col3 (type: string), _col4 (type: int), '_bucket_number' (type: string), _col0 (type: struct) - sort order: ++++ - Map-reduce partition columns: _col3 (type: string), _col4 (type: int) - Statistics: Num rows: 23 Data size: 2322 Basic stats: COMPLETE Column stats: NONE - value expressions: _col1 (type: string), 'bar' (type: string) - Reduce Operator Tree: - Select Operator - expressions: KEY._col0 (type: struct), VALUE._col1 (type: string), VALUE._col2 (type: string), KEY._col3 (type: string), KEY._col4 (type: int), KEY.'_bucket_number' (type: string) - outputColumnNames: _col0, _col1, _col2, _col3, _col4, '_bucket_number' - Statistics: Num rows: 23 Data size: 2322 Basic stats: COMPLETE Column stats: NONE - File Output Operator - compressed: false - Statistics: Num rows: 23 Data size: 2322 Basic stats: COMPLETE Column stats: NONE - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-0 - Move Operator - tables: - partition: - ds - hr - replace: false - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-2 - Stats-Aggr Operator - -PREHOOK: query: update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: query: update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=11 -PREHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -501 -PREHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr>=11 -PREHOOK: type: QUERY -POSTHOOK: query: explain update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr>=11 -POSTHOOK: type: QUERY -STAGE DEPENDENCIES: - Stage-1 is a root stage - Stage-0 depends on stages: Stage-1 - Stage-2 depends on stages: Stage-0 - -STAGE PLANS: - Stage: Stage-1 - Map Reduce - Map Operator Tree: - TableScan - alias: acid - Statistics: Num rows: 90 Data size: 9101 Basic stats: COMPLETE Column stats: NONE - Filter Operator - predicate: (key = 'foo') (type: boolean) - Statistics: Num rows: 45 Data size: 4550 Basic stats: COMPLETE Column stats: NONE - Select Operator - expressions: ROW__ID (type: struct), key (type: string), ds (type: string), hr (type: int) - outputColumnNames: _col0, _col1, _col3, _col4 - Statistics: Num rows: 45 Data size: 4550 Basic stats: COMPLETE Column stats: NONE - Reduce Output Operator - key expressions: _col3 (type: string), _col4 (type: int), '_bucket_number' (type: string), _col0 (type: struct) - sort order: ++++ - Map-reduce partition columns: _col3 (type: string), _col4 (type: int) - Statistics: Num rows: 45 Data size: 4550 Basic stats: COMPLETE Column stats: NONE - value expressions: _col1 (type: string), 'bar' (type: string) - Reduce Operator Tree: - Select Operator - expressions: KEY._col0 (type: struct), VALUE._col1 (type: string), VALUE._col2 (type: string), KEY._col3 (type: string), KEY._col4 (type: int), KEY.'_bucket_number' (type: string) - outputColumnNames: _col0, _col1, _col2, _col3, _col4, '_bucket_number' - Statistics: Num rows: 45 Data size: 4550 Basic stats: COMPLETE Column stats: NONE - File Output Operator - compressed: false - Statistics: Num rows: 45 Data size: 4550 Basic stats: COMPLETE Column stats: NONE - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-0 - Move Operator - tables: - partition: - ds - hr - replace: false - table: - input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat - output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat - serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde - name: default.acid - - Stage: Stage-2 - Stats-Aggr Operator - -PREHOOK: query: update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr>=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Input: default@acid@ds=2008-04-08/hr=12 -PREHOOK: Output: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Output: default@acid@ds=2008-04-08/hr=12 -POSTHOOK: query: update acid set value = 'bar' where key = 'foo' and ds='2008-04-08' and hr>=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=12 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=12 -PREHOOK: query: select count(*) from acid where ds='2008-04-08' and hr>=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Input: default@acid@ds=2008-04-08/hr=12 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' and hr>=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=12 -#### A masked pattern was here #### -1001 -PREHOOK: query: delete from acid where key = 'foo' and ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -PREHOOK: Output: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: query: delete from acid where key = 'foo' and ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -POSTHOOK: Output: default@acid@ds=2008-04-08/hr=11 -PREHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -PREHOOK: type: QUERY -PREHOOK: Input: default@acid -PREHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -POSTHOOK: query: select count(*) from acid where ds='2008-04-08' and hr=11 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@acid -POSTHOOK: Input: default@acid@ds=2008-04-08/hr=11 -#### A masked pattern was here #### -500