From 7ddf16587d64c599f7ab997c614feec07910918d Mon Sep 17 00:00:00 2001 From: wuyingjun Date: Thu, 11 May 2017 23:17:09 +0800 Subject: [PATCH] KYLIN-2595 Result query should use alias name to replace dimension column name when used Keyword As --- webapp/app/js/controllers/query.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/app/js/controllers/query.js b/webapp/app/js/controllers/query.js index 6be915b..945ddef 100644 --- a/webapp/app/js/controllers/query.js +++ b/webapp/app/js/controllers/query.js @@ -185,14 +185,14 @@ KylinApp angular.forEach(result.results, function (row, index) { var oneRow = {}; angular.forEach(result.columnMetas, function (meta, metaIndex) { - oneRow[meta.name] = row[metaIndex]; + oneRow[meta.label] = row[metaIndex]; }); data.push(oneRow); }); var columnDefs = []; angular.forEach(result.columnMetas, function (meta, metaIndex) { - columnDefs.push({field: meta.name, width: 120}); + columnDefs.push({field: meta.label, width: 120}); }); if (oneQuery.result.results) { -- 2.10.2.windows.1