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.