Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
Description
In current code of RelSet#addAbstractConverters, null checking of curRelTrait happens after clause of assert curRelTrait.getTraitDef() == traitDef;
It makes more sense to adjust the order;
In my understanding, this issue was not found previously for two reasons:
- AbstractConverter is not enabled by default (https://github.com/apache/calcite/blob/master/core/src/main/java/org/apache/calcite/adapter/enumerable/EnumerableConvention.java#L65)
- It rarely happens that two algebra expression operators have identical semantics but different RelTraitDef
I found this issue when working on https://issues.apache.org/jira/browse/CALCITE-2970
Attachments
Issue Links
- relates to
-
CALCITE-2970 Performance issue when enabling abstract converter for EnumerableConvention
- Closed
- links to