Repository: kylin Updated Branches: refs/heads/master 44f9ba566 -> 7403665cb
KYLIN-2052 the group by column wasn't displayed Signed-off-by: Jason <jiat...@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 <346839...@qq.com> Authored: Wed Oct 12 15:49:55 2016 +0800 Committer: Jason <jiat...@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];