ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject ignite git commit: ignite-843 Sql fix scan.
Date Thu, 01 Oct 2015 10:28:09 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843 0214b2651 -> 79302de2d


ignite-843 Sql fix scan.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/79302de2
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/79302de2
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/79302de2

Branch: refs/heads/ignite-843
Commit: 79302de2d2d426d3b97381c3d26e062133c424b8
Parents: 0214b26
Author: Andrey <anovikov@gridgain.com>
Authored: Thu Oct 1 17:27:53 2015 +0700
Committer: Andrey <anovikov@gridgain.com>
Committed: Thu Oct 1 17:27:53 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/sql-controller.js                   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/79302de2/modules/control-center-web/src/main/js/controllers/sql-controller.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/sql-controller.js b/modules/control-center-web/src/main/js/controllers/sql-controller.js
index 2dd03c0..1c87bbf 100644
--- a/modules/control-center-web/src/main/js/controllers/sql-controller.js
+++ b/modules/control-center-web/src/main/js/controllers/sql-controller.js
@@ -344,9 +344,12 @@ consoleModule.controller('sqlController',
             if (paragraph.columnFilter(meta)) {
                 paragraph.chartColumns.push({value: idx, label: meta.fieldName});
 
+                // Index for explain, execute and fieldName for scan.
+                var colName = paragraph.queryArgs.query ? idx : '"' + meta.fieldName + '"';
+
                 columnDefs.push({
                     headerName: meta.fieldName,
-                    valueGetter: 'JSON.stringify(data[' + (idx) + '])'
+                    valueGetter: 'JSON.stringify(data[' +  colName + '])'
                 });
             }
         });


Mime
View raw message