calcite
calcite copied to clipboard
[CALCITE-4126] Stackoverflow error when applying JoinCommuteRule (Liya Fan)
See https://issues.apache.org/jira/browse/CALCITE-4126
The reason for stack overflow is that the JoinCommuteRule swaps children indiscriminately, which results in endless firing of the rule.
To solve the problem, we modify the rule so that the children are swapped only when some conditions are satisfied.