kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billy...@apache.org
Subject kylin git commit: KYLIN-2595 Result query should use alias name to replace dimension column name when used Keyword As
Date Thu, 11 May 2017 15:46:02 GMT
Repository: kylin
Updated Branches:
  refs/heads/master c6428efae -> 397642009


KYLIN-2595 Result query should use alias name to replace dimension column name when used Keyword
As

Signed-off-by: Billy Liu <billyliu@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/master
Commit: 397642009ed6056d7ee5ee66f51f7f67026933d4
Parents: c6428ef
Author: wuyingjun <wuyingjun@cmss.chinamobile.com>
Authored: Thu May 11 23:17:09 2017 +0800
Committer: Billy Liu <billyliu@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) {


Mime
View raw message