You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2017/05/19 23:58:03 UTC
[25/50] [abbrv] kylin git commit: KYLIN-2595 Result query should use
alias name to replace dimension column name when used Keyword As
KYLIN-2595 Result query should use alias name to replace dimension column name when used Keyword As
Signed-off-by: Billy Liu <bi...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/39764200
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/39764200
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/39764200
Branch: refs/heads/KYLIN-2624
Commit: 397642009ed6056d7ee5ee66f51f7f67026933d4
Parents: c6428ef
Author: wuyingjun <wu...@cmss.chinamobile.com>
Authored: Thu May 11 23:17:09 2017 +0800
Committer: Billy Liu <bi...@apache.org>
Committed: Thu May 11 23:45:45 2017 +0800
----------------------------------------------------------------------
webapp/app/js/controllers/query.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kylin/blob/39764200/webapp/app/js/controllers/query.js
----------------------------------------------------------------------
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) {