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 2015/11/05 02:54:17 UTC

[03/31] incubator-kylin git commit: KYLIN-1108 always return BIGINT type for COUNT expression

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/a1ed71fc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/a1ed71fc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/a1ed71fc

Branch: refs/heads/KYLIN-1112
Commit: a1ed71fca63f78ef474f4f947db9fdd23e931bac
Parents: b9e64da
Author: jiazhong <ji...@ebay.com>
Authored: Thu Oct 29 15:02:39 2015 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Thu Nov 5 09:53:15 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/a1ed71fc/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":