This is an automated email from the ASF dual-hosted git repository. xxyu pushed a commit to branch kylin-on-parquet-v2 in repository https://gitbox.apache.org/repos/asf/kylin.git
commit 5eb9b37cf4164f4cf94076aa84fd47f346ae4b17 Author: Zhichao Zhang <441586...@qq.com> AuthorDate: Tue Sep 1 16:10:12 2020 +0800 KYLIN-4732 The cube size is wrong after disabling/enabling the cube --- webapp/app/js/controllers/cubes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/app/js/controllers/cubes.js b/webapp/app/js/controllers/cubes.js index 7000581..21d86e1 100644 --- a/webapp/app/js/controllers/cubes.js +++ b/webapp/app/js/controllers/cubes.js @@ -48,10 +48,12 @@ KylinApp.controller('CubesCtrl', function ($scope, $q, $routeParams, $location, CubeService.getCube(queryParam, function(newCube){ var segmentsLen = newCube.segments && newCube.segments.length || 0 newCube.input_records_count = 0; + newCube.size_kb = 0; for(var i = segmentsLen - 1;i >= 0;i--){ var curSeg = newCube.segments[i] if(curSeg.status === "READY"){ newCube.input_records_count += curSeg.input_records + newCube.size_kb += curSeg.size_kb if(newCube.last_build_time === undefined || newCube.last_build_time < curSeg.last_build_time) { newCube.last_build_time = curSeg.last_build_time; }