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

SQL local query to a cache with queryParallelism>1 doesn't use index

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.3, 2.4
    • None
    • sql
    • None

    Description

      queryParallelism>1 + setLocal(true) changes the query plan and exclude usage of the sql index.

      Explain query with setLocal(false) and queryParallelism=1 :

      SELECT
      T__Z0.ID AS __C0_0
      FROM TABLE(COL VARCHAR='name0') I__Z1
      /* function */
      INNER JOIN PUBLIC.PERSON T__Z0
      /* PUBLIC.PERSON_NAME: NAME = I__Z1.COL */
      ON 1=1
      WHERE (T__Z0.SOURNAME = 'sourname0')
      AND (T_Z0.NAME = I_Z1.COL)

      Explain query with setLocal(true) and queryParallelism=2 :

      SELECT
      T__Z1.ID AS __C0_0
      FROM PUBLIC.PERSON T__Z1
      /* PUBLIC.PERSON._SCAN */
      /* WHERE T__Z1.SOURNAME = 'sourname0'
      */
      INNER JOIN TABLE(COL VARCHAR='name0') I__Z0
      /* function: COL = T__Z1.NAME */
      ON 1=1
      WHERE (T__Z1.SOURNAME = 'sourname0')
      AND (T_Z1.NAME = I_Z0.COL)

      Attachments

        1. ExplainAndIndexReproducer.java
          4 kB
          Pavel Vinokurov

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pvinokurov Pavel Vinokurov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: