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/01/26 12:36:05 UTC

[kylin] branch master updated: KYLIN-3703 get negative value when query kylin

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 c44832c  KYLIN-3703 get negative value when query kylin
c44832c is described below

commit c44832c15ca282da02ee55e9c784f0193cbe2233
Author: Temple Zhou <db...@gmail.com>
AuthorDate: Fri Jan 25 21:14:05 2019 +0800

    KYLIN-3703 get negative value when query kylin
---
 .../src/main/java/org/apache/kylin/metadata/model/FunctionDesc.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core-metadata/src/main/java/org/apache/kylin/metadata/model/FunctionDesc.java b/core-metadata/src/main/java/org/apache/kylin/metadata/model/FunctionDesc.java
index 72d956a..0f9a027 100644
--- a/core-metadata/src/main/java/org/apache/kylin/metadata/model/FunctionDesc.java
+++ b/core-metadata/src/main/java/org/apache/kylin/metadata/model/FunctionDesc.java
@@ -160,7 +160,7 @@ public class FunctionDesc implements Serializable {
             if (isMax() || isMin()) {
                 return parameter.getColRefs().get(0).getType();
             } else if (isSum()) {
-                return parameter.isColumnType() ? parameter.getColRefs().get(0).getType() : DataType.getType("bigint");
+                return parameter.isColumnType() ? DataType.getType(returnType) : DataType.getType("bigint");
             } else if (isCount()) {
                 return DataType.getType("bigint");
             } else {