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

Signed-off-by: Billy Liu <billy...@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 <wuying...@cmss.chinamobile.com>
Authored: Thu May 11 23:17:09 2017 +0800
Committer: Billy Liu <billy...@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) {

Reply via email to