When fixing https://issues.apache.org/jira/browse/FLINK-5144, we actually copied some classes from Calcite and do a quick fix in Flink. The fixing is actually merged by Calcite and will be included in version 1.12, we should update the Calcite version and remove the classes we copied.
The classes we copied:
2. RelDecorrelator -> FlinkRelDecorrelator