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 2016/10/20 09:51:57 UTC
kylin git commit: KYLIN-2052 the group by column wasn't displayed
Repository: kylin
Updated Branches:
refs/heads/master 44f9ba566 -> 7403665cb
KYLIN-2052 the group by column wasn't displayed
Signed-off-by: Jason <ji...@163.com>
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/7403665c
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/7403665c
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/7403665c
Branch: refs/heads/master
Commit: 7403665cba8f8faa4985f8993dc61f9dbe06b459
Parents: 44f9ba5
Author: chenzhx <34...@qq.com>
Authored: Wed Oct 12 15:49:55 2016 +0800
Committer: Jason <ji...@163.com>
Committed: Thu Oct 20 17:51:47 2016 +0800
----------------------------------------------------------------------
webapp/app/js/controllers/cubeMeasures.js | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kylin/blob/7403665c/webapp/app/js/controllers/cubeMeasures.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/cubeMeasures.js b/webapp/app/js/controllers/cubeMeasures.js
index e1ade17..006c6c2 100644
--- a/webapp/app/js/controllers/cubeMeasures.js
+++ b/webapp/app/js/controllers/cubeMeasures.js
@@ -42,6 +42,14 @@ KylinApp.controller('CubeMeasuresCtrl', function ($scope, $modal,MetaModel,cubes
}
if($scope.newMeasure.function.expression=="TOP_N"){
$scope.convertedColumns=[];
+ if($scope.newMeasure.function.configuration==null){
+ var GroupBy = {
+ name:$scope.newMeasure.function.parameter.next_parameter.value,
+ encoding:"dict",
+ valueLength:0,
+ }
+ $scope.convertedColumns.push(GroupBy);
+ }
for(var configuration in $scope.newMeasure.function.configuration) {
var _name=configuration.slice(14);
var item=$scope.newMeasure.function.configuration[configuration];