The return type of tinyint for sum measure should be bigint

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

Branch: refs/heads/KYLIN-2624
Commit: 1264ff39b740f9515653d30e0712739bc717d438
Parents: 901b10c
Author: kangkaisen <kangkai...@163.com>
Authored: Wed May 10 20:03:40 2017 +0800
Committer: kangkaisen <kangkai...@163.com>
Committed: Wed May 10 20:03:40 2017 +0800

----------------------------------------------------------------------
 webapp/app/js/controllers/cubeMeasures.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/1264ff39/webapp/app/js/controllers/cubeMeasures.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/cubeMeasures.js 
b/webapp/app/js/controllers/cubeMeasures.js
index 73a6cd0..824e2ca 100644
--- a/webapp/app/js/controllers/cubeMeasures.js
+++ b/webapp/app/js/controllers/cubeMeasures.js
@@ -367,7 +367,7 @@ KylinApp.controller('CubeMeasuresCtrl', function ($scope, 
$modal,MetaModel,cubes
 
       switch($scope.newMeasure.function.expression){
         case "SUM":
-          
if(colType==="smallint"||colType==="int"||colType==="bigint"||colType==="integer"){
+          
if(colType==="tinyint"||colType==="smallint"||colType==="int"||colType==="bigint"||colType==="integer"){
             $scope.newMeasure.function.returntype= 'bigint';
           }else{
            
if(colType.indexOf('decimal')!=-1||colType==="double"||colType==="float"){

Reply via email to