Repository: kylin Updated Branches: refs/heads/1.5.4.1-beeline 8f4ed7279 -> 3fb0c16c2
KYLIN-2134 Kylin will treat empty string as NULL by mistake Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/3fb0c16c Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/3fb0c16c Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/3fb0c16c Branch: refs/heads/1.5.4.1-beeline Commit: 3fb0c16c263d8a7edc443d919200f0c244c517fb Parents: 8f4ed72 Author: Hongbin Ma <mahong...@apache.org> Authored: Thu Oct 27 15:22:54 2016 +0800 Committer: Hongbin Ma <mahong...@apache.org> Committed: Thu Oct 27 15:25:31 2016 +0800 ---------------------------------------------------------------------- .../src/main/java/org/apache/kylin/metadata/tuple/Tuple.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/3fb0c16c/core-metadata/src/main/java/org/apache/kylin/metadata/tuple/Tuple.java ---------------------------------------------------------------------- diff --git a/core-metadata/src/main/java/org/apache/kylin/metadata/tuple/Tuple.java b/core-metadata/src/main/java/org/apache/kylin/metadata/tuple/Tuple.java index aaf9aa9..9074403 100644 --- a/core-metadata/src/main/java/org/apache/kylin/metadata/tuple/Tuple.java +++ b/core-metadata/src/main/java/org/apache/kylin/metadata/tuple/Tuple.java @@ -178,7 +178,7 @@ public class Tuple implements ITuple { if (strValue == null) return null; - if ((strValue.equals("") || strValue.equals("\\N")) && !dataTypeName.equals("string")) + if ((strValue.equals("") || strValue.equals("\\N")) && !dataTypeName.equals("string") && !dataTypeName.startsWith("varchar")) return null; // TODO use data type enum instead of string comparison