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

Calcite. Simple JOIN with f1=f2 cannot be planned with CNLJ.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: sql
    • Labels:

      Description

      For now simple JOIN requests like:

      SELECT * FROM integers FULL OUTER JOIN integers2 ON integers.i=integers2.k ORDER BY i
      

      can be planned only through MergeJoin or NestedLoopJoin it would be useful to extend it with CNLJ too. Starting point : FilterSpoolMergeToSortedIndexSpoolRule#onMatch

      We have to add new rule FilterSpoolMergeToSortedIndexSpoolRule_ForceCollation which forces collation by the filter condition.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                zstan Stanilovsky Evgeny
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: