Repository: tajo
Updated Branches:
  refs/heads/master 8be501f43 -> b63741683


TAJO-976: HashPartitioner doesn't make desired number of partitions 
infrequently. (Fixed a build failure due to 1.7 API)


Project: http://git-wip-us.apache.org/repos/asf/tajo/repo
Commit: http://git-wip-us.apache.org/repos/asf/tajo/commit/b6374168
Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/b6374168
Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/b6374168

Branch: refs/heads/master
Commit: b637416834951443e816fec930a8a08d8f2e17b7
Parents: 8be501f
Author: Hyunsik Choi <[email protected]>
Authored: Tue Jul 29 13:38:02 2014 +0900
Committer: Hyunsik Choi <[email protected]>
Committed: Tue Jul 29 13:38:02 2014 +0900

----------------------------------------------------------------------
 .../test/java/org/apache/tajo/engine/query/TestGroupByQuery.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/b6374168/tajo-core/src/test/java/org/apache/tajo/engine/query/TestGroupByQuery.java
----------------------------------------------------------------------
diff --git 
a/tajo-core/src/test/java/org/apache/tajo/engine/query/TestGroupByQuery.java 
b/tajo-core/src/test/java/org/apache/tajo/engine/query/TestGroupByQuery.java
index 72759c0..79efd92 100644
--- a/tajo-core/src/test/java/org/apache/tajo/engine/query/TestGroupByQuery.java
+++ b/tajo-core/src/test/java/org/apache/tajo/engine/query/TestGroupByQuery.java
@@ -600,7 +600,9 @@ public class TestGroupByQuery extends QueryTestCaseBase {
       Collections.sort(qmTasks, new Comparator<QueryMasterTask>() {
         @Override
         public int compare(QueryMasterTask o1, QueryMasterTask o2) {
-          return Long.compare(o1.getQuerySubmitTime(), 
o2.getQuerySubmitTime());
+          long l1 = o1.getQuerySubmitTime();
+          long l2 = o2.getQuerySubmitTime();
+          return l1 < l2 ? - 1 : (l1 > l2 ? 1 : 0);
         }
       });
 

Reply via email to