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

Sql. Some queries exceptionally executed if some rules are disabled.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-beta1
    • None
    • sql

    Description

      Found that if only one aggregate rule HashAggregateConverterRule.COLOCATED become available (in practice it can win by summary weights), we obtain exception, like :

      concrete this test can be found in /sqlite/aggregates/agg1.test.
      There are also numerous faled tests if only one aggregate rule become enabled.

      Error at: (agg1.test_slow:113). sql: SELECT DISTINCT + 30 AS col0 FROM tab0, tab1 AS cor0
      
      Caused by: java.lang.IllegalStateException
      	at org.apache.ignite.internal.sql.engine.trait.DistributionFunction$SingletonDistribution.destination(DistributionFunction.java:205)
      	at org.apache.ignite.internal.sql.engine.trait.DistributionTrait.destination(DistributionTrait.java:109)
      	at org.apache.ignite.internal.sql.engine.exec.LogicalRelImplementor.visit(LogicalRelImplementor.java:161)
      
                  //HashAggregateConverterRule.COLOCATED,
                  HashAggregateConverterRule.MAP_REDUCE,
                  //SortAggregateConverterRule.COLOCATED,
                  //SortAggregateConverterRule.MAP_REDUCE,
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m