kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liy...@apache.org
Subject incubator-kylin git commit: KYLIN-817, add a minor exception check
Date Mon, 08 Jun 2015 10:00:00 GMT
Repository: incubator-kylin
Updated Branches:
  refs/heads/0.8.0 1b0237219 -> bdde514c3


KYLIN-817, add a minor exception check


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

Branch: refs/heads/0.8.0
Commit: bdde514c39e559b70fc4601df403995bf1d2cfc2
Parents: 1b02372
Author: Li, Yang <yangli9@ebay.com>
Authored: Mon Jun 8 17:59:52 2015 +0800
Committer: Li, Yang <yangli9@ebay.com>
Committed: Mon Jun 8 17:59:52 2015 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/kylin/query/relnode/OLAPProjectRel.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/bdde514c/query/src/main/java/org/apache/kylin/query/relnode/OLAPProjectRel.java
----------------------------------------------------------------------
diff --git a/query/src/main/java/org/apache/kylin/query/relnode/OLAPProjectRel.java b/query/src/main/java/org/apache/kylin/query/relnode/OLAPProjectRel.java
index 6a15c4f..568ecaf 100644
--- a/query/src/main/java/org/apache/kylin/query/relnode/OLAPProjectRel.java
+++ b/query/src/main/java/org/apache/kylin/query/relnode/OLAPProjectRel.java
@@ -125,6 +125,8 @@ public class OLAPProjectRel extends ProjectRelBase implements OLAPRel,
Enumerabl
             String fieldName = columnField.getName();
             Set<TblColRef> sourceCollector = new HashSet<TblColRef>();
             TblColRef column = translateRexNode(rex, inputColumnRowType, fieldName, sourceCollector);
+            if (column == null)
+                throw new IllegalStateException("No TblColRef found in " + rex);
             columns.add(column);
             sourceColumns.add(sourceCollector);
         }


Mime
View raw message