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/28 02:54:03 UTC
[kylin] branch 2.4.x 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 2.4.x
in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/2.4.x by this push:
new d59179e KYLIN-3703 get negative value when query kylin
d59179e is described below
commit d59179e70441db0184b5a80dca37d04f664a9e2d
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 d93ada4..0980fc3 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
@@ -158,7 +158,7 @@ public class FunctionDesc implements Serializable {
if (isMax() || isMin()) {
return parameter.getColRefs().get(0).getType();
} else if (isSum()) {
- return parameter.getColRefs().get(0).getType();
+ return parameter.isColumnType() ? DataType.getType(returnType) : DataType.getType("bigint");
} else if (isCount()) {
return DataType.getType("bigint");
} else {