From 5fc2d091059bb50eb3e98747bc49148689b1ce2b Mon Sep 17 00:00:00 2001 From: nichunen Date: Mon, 27 Nov 2017 14:07:43 +0800 Subject: [PATCH] KYLIN-3056 Use get sql api for cube not for segement --- webapp/app/js/controllers/cube.js | 2 +- webapp/app/js/services/cubes.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/app/js/controllers/cube.js b/webapp/app/js/controllers/cube.js index d3a50795d..b573b247b 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){ diff --git a/webapp/app/js/services/cubes.js b/webapp/app/js/services/cubes.js index 26ecd3fb1..7e2ee00a3 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}, -- 2.11.0 (Apple Git-81)