You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2019/03/29 13:22:05 UTC
[kylin] branch master updated: KYLIN-3907 Sort the cube list by
create time in descending order.
This is an automated email from the ASF dual-hosted git repository.
shaofengshi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/master by this push:
new 504ab5d KYLIN-3907 Sort the cube list by create time in descending order.
504ab5d is described below
commit 504ab5da9535071d7dc9b9d8d5ac8a5b1b737d3b
Author: yuzhang <sh...@163.com>
AuthorDate: Thu Mar 28 09:34:35 2019 +0800
KYLIN-3907 Sort the cube list by create time in descending order.
---
.../src/main/java/org/apache/kylin/rest/service/CubeService.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/server-base/src/main/java/org/apache/kylin/rest/service/CubeService.java b/server-base/src/main/java/org/apache/kylin/rest/service/CubeService.java
index df79a26..7378165 100644
--- a/server-base/src/main/java/org/apache/kylin/rest/service/CubeService.java
+++ b/server-base/src/main/java/org/apache/kylin/rest/service/CubeService.java
@@ -189,6 +189,8 @@ public class CubeService extends BasicService implements InitializingBean {
filterCubes.add(cubeInstance);
}
}
+ // sort the cube list by create time in descending order
+ filterCubes.sort((o1, o2) -> Long.compare(o2.getCreateTimeUTC(), o1.getCreateTimeUTC()));
return filterCubes;
}