[BEAM-5072][SQL]Disable SortRemoveRule and Remove RelCollationTraitDef configuration in BeamQueryPlanner#6139
Conversation
|
Also created JIRA https://issues.apache.org/jira/browse/BEAM-5073 to track enabling SortRemoveRule. |
|
Related calcite code that shows how |
e1f6aea to
c10dde9
Compare
|
What is here so far looks good, you also need to remove it from the JDBC planner here: Planner gives you |
|
|
||
| final ImmutableList<RelTraitDef> traitDefs = | ||
| ImmutableList.of(ConventionTraitDef.INSTANCE, RelCollationTraitDef.INSTANCE); | ||
| final ImmutableList<RelTraitDef> traitDefs = ImmutableList.of(ConventionTraitDef.INSTANCE); |
There was a problem hiding this comment.
This is only valid for BeamSqlEnv path. Does the JDBC path apply the CollationTrait?
There was a problem hiding this comment.
c10dde9 to
5ab3ed8
Compare
|
I also removed/commented |
|
Green |
Right now we configure
RelCollationTraitDefinBeamQueryPlannerbut seems like we don't use/implement it. However this configuration causesSortRemoveRuleto apply sort to SortRel's input and then drop the SorRel (which does not really sort the SortRel's input).Remove
RelCollationTraitDefand disableSortRemoveRulefor now.If don't remove CollationTrait, one example is:
Follow this checklist to help us incorporate your contribution quickly and easily:
[BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replaceBEAM-XXXwith the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.It will help us expedite review of your Pull Request if you tag someone (e.g.
@username) to look at it.Post-Commit Tests Status (on master branch)