You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by zh...@apache.org on 2015/10/29 08:01:44 UTC

[2/2] 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/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 <ji...@ebay.com>
Authored: Thu Oct 29 15:01:29 2015 +0800
Committer: jiazhong <ji...@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":