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

PlannerTest ignores top-level order by clause (~RootRel.collation)

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.18.0
    • Fix Version/s: 1.19.0
    • Component/s: core
    • Labels:
      None

      Description

          RelTraitSet traitSet = planner.getEmptyTraitSet()
              .replace(EnumerableConvention.INSTANCE);
      

      should be replaced with

          RelTraitSet traitSet = convert.getTraitSet()
              .replace(EnumerableConvention.INSTANCE);
      

      Otherwise PlannerTest asks Planner to produce "empty collation" even in case Root relation has order by.

      See also "how does SortRemoveRule work?" in the mailing list.

        Attachments

          Activity

            People

            • Assignee:
              vladimirsitnikov Vladimir Sitnikov
              Reporter:
              vladimirsitnikov Vladimir Sitnikov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: