Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3972

Allow RelBuilder to create RelNode with convention and use it for trait convert

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.24.0
    • None
    • None

    Description

      1. Provide Convention.transformRelBuilder() to transform an existing RelBuilder into one with specific convention.
      2. RelBuilder provides withRelFactories() method to allow caller swap the underlying RelFactories and create a new builder.
      3. Use the new interface in RelCollationTraitDef for converting into RelCollation traits

      We can avoid ~1/3 of total rule firings in a N way join case with this change.

      Attachments

        Issue Links

          Activity

            People

              xndai Xiening Dai
              xndai Xiening Dai
              Votes:
              0 Vote for this issue
              Watchers:
              8 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 - 2h 10m
                  2h 10m