Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-13457

Calcite integration. Join returns partial resultset.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.1
    • None
    • sql
    • None

    Description

      Check example attached, shortly, two simple caches :

          /** */
          public static class MyClass {
              /** */
              @QuerySqlField
              public String name;
      
              /** */
              @QuerySqlField
              @AffinityKeyMapped
              public Integer amount;
      ...
          }
      
          /** */
          public static class MyClass2 {
              /** */
              @QuerySqlField
              public String name;
      
              /** */
              @QuerySqlField
              @AffinityKeyMapped
              public Integer amount2;
      ....
          }
      
              IgniteCache<Integer, MyClass> cache1 = ignite.getOrCreateCache(new CacheConfiguration<Integer, MyClass>()
                  .setName("tbl1")
                  .setSqlSchema("PUBLIC")
                  .setQueryEntities(F.asList(new QueryEntity(Integer.class, MyClass.class).setTableName("TBL1")))
                  .setBackups(1)
              );
      
              IgniteCache<Integer, MyClass2> cache2 = ignite.getOrCreateCache(new CacheConfiguration<Integer, MyClass2>()
                  .setName("tbl2")
                  .setSqlSchema("PUBLIC")
                  .setQueryEntities(F.asList(new QueryEntity(Integer.class, MyClass2.class).setTableName("TBL2")))
                  .setBackups(1)
              );
      

      and further request : select * from TBL1 t1 LEFT JOIN TBL2 t2 ON t1.amount = t2.amount2 returns : 9216 results with calcite engine and correctly 10000 with H2.

      Attachments

        1. BenchmarkCalcite.java
          4 kB
          Evgeny Stanilovsky

        Issue Links

          Activity

            People

              zstan Evgeny Stanilovsky
              zstan Evgeny Stanilovsky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: