IGNITE-1753 Fixed issue with metadata for POJO store only.

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

Branch: refs/heads/ignite-1753-1282
Commit: 9e4e8e6b4ee99b04cd6d27104dc7163371803ad3
Parents: 5fd4df5
Author: Alexey Kuznetsov <[email protected]>
Authored: Thu Nov 5 10:27:38 2015 +0700
Committer: Alexey Kuznetsov <[email protected]>
Committed: Thu Nov 5 10:27:38 2015 +0700

----------------------------------------------------------------------
 .../ignite/internal/processors/query/GridQueryProcessor.java | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/9e4e8e6b/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
index d1f9869..7e3a3b2 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
@@ -249,7 +249,6 @@ public class GridQueryProcessor extends 
GridProcessorAdapter {
                         types.put(altTypeId, desc);
 
                     desc.registered(idx.registerType(ccfg.getName(), desc));
-
                 }
             }
 
@@ -258,6 +257,11 @@ public class GridQueryProcessor extends 
GridProcessorAdapter {
                     if (F.isEmpty(meta.getValueType()))
                         throw new IgniteCheckedException("Value type is not 
set: " + meta);
 
+                    // Skip meta that was configured for POJO store only.
+                    if (meta.getQueryFields().isEmpty() && 
meta.getAscendingFields().isEmpty() &&
+                        meta.getDescendingFields().isEmpty() && 
meta.getGroups().isEmpty())
+                        continue;
+
                     TypeDescriptor desc = new TypeDescriptor();
 
                     // Key and value classes still can be available if they 
are primitive or JDK part.
@@ -2260,4 +2264,4 @@ public class GridQueryProcessor extends 
GridProcessorAdapter {
     private enum IndexType {
         ASC, DESC, TEXT
     }
-}
\ No newline at end of file
+}

Reply via email to