You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2015/01/31 13:00:05 UTC

[11/11] incubator-kylin git commit: KYLIN-581 when get jobs filter by cube name, compare the full name

KYLIN-581 when get jobs filter by cube name, compare the full name


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

Branch: refs/heads/staging
Commit: f17523389fb97972a3c74e4fea3e713b71f494cc
Parents: 49df68a
Author: qianhao.zhou <qi...@ebay.com>
Authored: Thu Jan 29 12:25:07 2015 +0800
Committer: qianhao.zhou <qi...@ebay.com>
Committed: Thu Jan 29 12:25:07 2015 +0800

----------------------------------------------------------------------
 job/src/main/java/com/kylinolap/job/JobDAO.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/f1752338/job/src/main/java/com/kylinolap/job/JobDAO.java
----------------------------------------------------------------------
diff --git a/job/src/main/java/com/kylinolap/job/JobDAO.java b/job/src/main/java/com/kylinolap/job/JobDAO.java
index b9fb688..a184a6a 100644
--- a/job/src/main/java/com/kylinolap/job/JobDAO.java
+++ b/job/src/main/java/com/kylinolap/job/JobDAO.java
@@ -96,7 +96,7 @@ public class JobDAO {
         ArrayList<JobInstance> result = new ArrayList<JobInstance>();
         for (JobInstance job : allJobs) {
             if (job != null) {
-                if (job.getRelatedCube().toLowerCase().contains(cubeName.toLowerCase())) {
+                if (job.getRelatedCube().equalsIgnoreCase(cubeName)) {
                     result.add(job);
                 }
             }