You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by zs...@apache.org on 2022/05/11 11:30:24 UTC

[ignite] branch master updated: IGNITE-16919 H2 Index cost function must take into account only corresponding columns - Fixes #10007.

This is an automated email from the ASF dual-hosted git repository.

zstan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new b2b032d6b7b IGNITE-16919 H2 Index cost function must take into account only corresponding columns - Fixes #10007.
b2b032d6b7b is described below

commit b2b032d6b7bce832e4fa1b66e6cda3f238f4bfb5
Author: zstan <st...@gmail.com>
AuthorDate: Wed May 11 14:29:58 2022 +0300

    IGNITE-16919 H2 Index cost function must take into account only corresponding columns - Fixes #10007.
    
    Signed-off-by: zstan <st...@gmail.com>
---
 .../ignite/internal/processors/query/h2/opt/H2IndexCostedBase.java     | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/H2IndexCostedBase.java b/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/H2IndexCostedBase.java
index c64cc7ee036..d897beab320 100644
--- a/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/H2IndexCostedBase.java
+++ b/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/H2IndexCostedBase.java
@@ -636,6 +636,9 @@ public abstract class H2IndexCostedBase extends BaseIndex {
             boolean foundAllColumnsWeNeed = true;
 
             for (Column c : allColumnsSet) {
+                if (!c.getTable().equals(getTable()))
+                    continue;
+
                 boolean found = false;
 
                 for (Column c2 : columns) {