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

Calcite engine. Redundant sort node when rewriting index scan on index rebuild

    XMLWordPrintableJSON

Details

    Description

      When the query plan has an index scan, but the index is rebuilding we rewrite this scan to the chain of table scan/sort/spool/project nodes (see IGNITE-16111). In some cases sort node is redundant, but still created, for example, when index scan is used only for filtering:

      SELECT * FROM emp WHERE dep_id = 10
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alex_pl Aleksey Plekhanov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: