kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhongj...@apache.org
Subject [2/2] incubator-kylin git commit: KYLIN-1108 always return BIGINT type for COUNT expression
Date Thu, 29 Oct 2015 07:01:44 GMT
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/c3c80b23
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/c3c80b23
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/c3c80b23

Branch: refs/heads/1.x-staging
Commit: c3c80b23c26c42c1c9144a03d47b6c85e57fad53
Parents: 724653c
Author: jiazhong <jiazhong@ebay.com>
Authored: Thu Oct 29 15:01:29 2015 +0800
Committer: jiazhong <jiazhong@ebay.com>
Committed: Thu Oct 29 15:01:29 2015 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/c3c80b23/webapp/app/js/controllers/cubeSchema.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/cubeSchema.js b/webapp/app/js/controllers/cubeSchema.js
index 4c23f74..bbcc1fb 100755
--- a/webapp/app/js/controllers/cubeSchema.js
+++ b/webapp/app/js/controllers/cubeSchema.js
@@ -118,6 +118,11 @@ KylinApp.controller('CubeSchemaCtrl', function ($scope, QueryService,
UserServic
 
   //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