kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhongj...@apache.org
Subject [1/2] incubator-kylin git commit: KYLIN-1108 always return BIGINT type for COUNT expression
Date Thu, 29 Oct 2015 07:19:29 GMT
Repository: incubator-kylin
Updated Branches:
  refs/heads/2.x-staging cb94c8127 -> e8df2bc23


KYLIN-1108 always return BIGINT type for COUNT expression


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

Branch: refs/heads/2.x-staging
Commit: 9203ff1050bccad194713f75a2b3f189372649cb
Parents: cb94c81
Author: jiazhong <jiazhong@ebay.com>
Authored: Thu Oct 29 15:02:39 2015 +0800
Committer: jiazhong <jiazhong@ebay.com>
Committed: Thu Oct 29 15:17:07 2015 +0800

----------------------------------------------------------------------
 webapp/app/js/controllers/cubeMeasures.js | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/9203ff10/webapp/app/js/controllers/cubeMeasures.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/cubeMeasures.js b/webapp/app/js/controllers/cubeMeasures.js
index cdcd3cf..1560d23 100644
--- a/webapp/app/js/controllers/cubeMeasures.js
+++ b/webapp/app/js/controllers/cubeMeasures.js
@@ -44,6 +44,11 @@ KylinApp.controller('CubeMeasuresCtrl', function ($scope, $modal,MetaModel,cubes
 
   //map right return type for param
   $scope.measureReturnTypeUpdate = function(){
+
+    if($scope.newMeasure.function.expression == 'COUNT'){
+      $scope.newMeasure.function.parameter.type= 'constant';
+    }
+
     if($scope.newMeasure.function.parameter.type=="constant"&&$scope.newMeasure.function.expression!=="COUNT_DISTINCT"){
       switch($scope.newMeasure.function.expression){
         case "SUM":


Mime
View raw message