You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by an...@apache.org on 2015/10/01 12:28:09 UTC

ignite git commit: ignite-843 Sql fix scan.

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 <an...@gridgain.com>
Authored: Thu Oct 1 17:27:53 2015 +0700
Committer: Andrey <an...@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 + '])'
                 });
             }
         });