asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jianf...@apache.org
Subject incubator-asterixdb-hyracks git commit: Fix the ExternalGroupby for fuzzy join
Date Sat, 12 Mar 2016 19:00:36 GMT
Repository: incubator-asterixdb-hyracks
Updated Branches:
  refs/heads/master 011abeb07 -> 3f2f53914


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>


Project: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/commit/3f2f5391
Tree: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/tree/3f2f5391
Diff: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/diff/3f2f5391

Branch: refs/heads/master
Commit: 3f2f53914ef0f09e2e0f8f67837268cef7fe7e97
Parents: 011abeb
Author: Jianfeng Jia <jianfeng.jia@gmail.com>
Authored: Sat Mar 12 00:31:48 2016 -0800
Committer: Jianfeng Jia <jianfeng.jia@gmail.com>
Committed: Sat Mar 12 10:54:56 2016 -0800

----------------------------------------------------------------------
 .../hyracks/dataflow/std/group/HashSpillableTableFactory.java | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/blob/3f2f5391/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/group/HashSpillableTableFactory.java
----------------------------------------------------------------------
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 @@ public class HashSpillableTableFactory implements ISpillableTableFactory
{
 
         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()),


Mime
View raw message