You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by gi...@apache.org on 2018/11/14 23:20:57 UTC

[incubator-druid] branch master updated: Fix bugs in ExprEval (#6617)

This is an automated email from the ASF dual-hosted git repository.

gian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 0b70c36  Fix bugs in ExprEval (#6617)
0b70c36 is described below

commit 0b70c36eb0dff06c81010d1569797c727712bddd
Author: Roman Leventov <le...@gmail.com>
AuthorDate: Thu Nov 15 00:20:52 2018 +0100

    Fix bugs in ExprEval (#6617)
---
 core/src/main/java/org/apache/druid/math/expr/ExprEval.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/src/main/java/org/apache/druid/math/expr/ExprEval.java b/core/src/main/java/org/apache/druid/math/expr/ExprEval.java
index 2b649d4..4dad810 100644
--- a/core/src/main/java/org/apache/druid/math/expr/ExprEval.java
+++ b/core/src/main/java/org/apache/druid/math/expr/ExprEval.java
@@ -197,7 +197,7 @@ public abstract class ExprEval<T>
           return this;
         case LONG:
           if (value == null) {
-            return ExprEval.of(null);
+            return ExprEval.ofLong(null);
           } else {
             return ExprEval.of(asLong());
           }
@@ -239,7 +239,7 @@ public abstract class ExprEval<T>
       switch (castTo) {
         case DOUBLE:
           if (value == null) {
-            return ExprEval.of(null);
+            return ExprEval.ofDouble(null);
           } else {
             return ExprEval.of(asDouble());
           }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org