Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.18.0
Description
RelTraitPropagationVisitor is currently used only for debugging purposes doing nothing more than throwing an assertion error if certain conditions does not hold. By a quick search in the Jira, I couldn't find any issues showing that the visitor really detected some problem.
According to the thread "RelTraitPropagationVisitor and useless code policy" in the dev list the class is more or less useless and unlikely to be used in the future.
Moreover, the visitor traverses complete RelNode subtrees introduced after rule matches (and their traits) affecting also the performance of the planner.
Finally, the contract and the behavior of the class are not consistent.
For the above reasons, I propose to deprecate the class and remove its usages.
Attachments
Issue Links
- links to