ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [05/15] ignite git commit: Skip merge table query.
Date Wed, 25 Nov 2015 05:53:21 GMT
Skip merge table query.


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

Branch: refs/heads/ignite-sql-opt-2
Commit: 7e34cec3bb0adbea0d94fcd06b3aff549dcf57a0
Parents: eb2b5f3
Author: sboikov <sboikov@gridgain.com>
Authored: Tue Nov 24 16:32:45 2015 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Tue Nov 24 16:32:45 2015 +0300

----------------------------------------------------------------------
 .../internal/processors/query/h2/sql/GridSqlQuerySplitter.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/7e34cec3/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/sql/GridSqlQuerySplitter.java
----------------------------------------------------------------------
diff --git a/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/sql/GridSqlQuerySplitter.java
b/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/sql/GridSqlQuerySplitter.java
index 741a998..04d469b 100644
--- a/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/sql/GridSqlQuerySplitter.java
+++ b/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/sql/GridSqlQuerySplitter.java
@@ -262,7 +262,7 @@ public class GridSqlQuerySplitter {
         GridCacheSqlQuery rdc = new GridCacheSqlQuery(rdcQry.getSQL(),
             findParams(rdcQry, params, new ArrayList<>(), paramIdxs).toArray());
 
-        rdc.skipMergeTable(rdcSimpleQry);
+        rdc.skipMergeTable(rdcSimpleQry && paramIdxs.size() == 0);
 
         rdc.parameterIndexes(toIntArray(paramIdxs));
 


Mime
View raw message