You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ch...@apache.org on 2017/11/27 06:47:25 UTC

kylin git commit: KYLIN-3056 Use get sql api for cube not for segement

Repository: kylin
Updated Branches:
  refs/heads/master 92d13a0e6 -> 8d64bcff3


KYLIN-3056 Use get sql api for cube not for segement


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/8d64bcff
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/8d64bcff
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/8d64bcff

Branch: refs/heads/master
Commit: 8d64bcff3985e94cfe23810e1a7b991c152619bf
Parents: 92d13a0
Author: nichunen <ch...@kyligence.io>
Authored: Mon Nov 27 14:07:43 2017 +0800
Committer: chenzhx <ch...@apache.org>
Committed: Mon Nov 27 14:46:30 2017 +0800

----------------------------------------------------------------------
 webapp/app/js/controllers/cube.js | 2 +-
 webapp/app/js/services/cubes.js   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/8d64bcff/webapp/app/js/controllers/cube.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/cube.js b/webapp/app/js/controllers/cube.js
index d3a5079..b573b24 100755
--- a/webapp/app/js/controllers/cube.js
+++ b/webapp/app/js/controllers/cube.js
@@ -30,7 +30,7 @@ KylinApp.controller('CubeCtrl', function ($scope, AccessService, MessageService,
     };
 
     $scope.getCubeSql = function (cube) {
-        CubeService.getSql({cubeId: cube.name, propValue: "null"}, function (sql) {
+        CubeService.getSql({cubeId: cube.name}, function (sql) {
             cube.sql = sql.sql;
         },function(e){
             if(e.data&& e.data.exception){

http://git-wip-us.apache.org/repos/asf/kylin/blob/8d64bcff/webapp/app/js/services/cubes.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/services/cubes.js b/webapp/app/js/services/cubes.js
index 26ecd3f..7e2ee00 100644
--- a/webapp/app/js/services/cubes.js
+++ b/webapp/app/js/services/cubes.js
@@ -21,7 +21,7 @@ KylinApp.factory('CubeService', ['$resource', function ($resource, config) {
     list: {method: 'GET', params: {}, isArray: true},
     getValidEncodings: {method: 'GET', params: {action:"validEncodings"}, isArray: false},
     getCube: {method: 'GET', params: {}, isArray: false},
-    getSql: {method: 'GET', params: {propName: 'segs', action: 'sql'}, isArray: false},
+    getSql: {method: 'GET', params: {action: 'sql'}, isArray: false},
     updateNotifyList: {method: 'PUT', params: {propName: 'notify_list'}, isArray: false},
     cost: {method: 'PUT', params: {action: 'cost'}, isArray: false},
     rebuildLookUp: {method: 'PUT', params: {propName: 'segs', action: 'refresh_lookup'}, isArray: false},