commit | 3f2f53914ef0f09e2e0f8f67837268cef7fe7e97 | [log] [tgz] |
---|---|---|
author | Jianfeng Jia <jianfeng.jia@gmail.com> | Sat Mar 12 00:31:48 2016 -0800 |
committer | Jianfeng Jia <jianfeng.jia@gmail.com> | Sat Mar 12 10:54:56 2016 -0800 |
tree | f3030ccde176e14017d34aba452de84737990db4 | |
parent | 011abeb079be54eb2f25f90c8ce948ab74c40dd0 [diff] |
Fix the ExternalGroupby for fuzzy join Change-Id: I5a3852d08f9a3e2738ea2952f05aa082a2e6dbbb Reviewed-on: https://asterix-gerrit.ics.uci.edu/713 Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Reviewed-by: Yingyi Bu <buyingyi@gmail.com>
diff --git a/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/group/HashSpillableTableFactory.java b/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/group/HashSpillableTableFactory.java index 44ddf44..e08041d 100644 --- a/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/group/HashSpillableTableFactory.java +++ b/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/group/HashSpillableTableFactory.java
@@ -83,12 +83,7 @@ final AggregateState aggregateState = aggregator.createAggregateStates(); - final ArrayTupleBuilder stateTupleBuilder; - if (keyFields.length < outRecordDescriptor.getFields().length) { - stateTupleBuilder = new ArrayTupleBuilder(outRecordDescriptor.getFields().length); - } else { - stateTupleBuilder = new ArrayTupleBuilder(outRecordDescriptor.getFields().length + 1); - } + final ArrayTupleBuilder stateTupleBuilder = new ArrayTupleBuilder(outRecordDescriptor.getFields().length); //TODO(jf) research on the optimized partition size final int numPartitions = getNumOfPartitions((int) (dataBytesSize / ctx.getInitialFrameSize()),