Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ public void onMatch(RelOptRuleCall relOptRuleCall) {
@Override
public RexNode visitCall(RexCall call) {
if (call.getOperator().equals(operator)) {
hasTransformed.set(true);
return transform.transform(relOptRuleCall.builder(), call);
var transformed = transform.transform(relOptRuleCall.builder(), call);
if (transformed != call) {
hasTransformed.set(true);
return transformed;
}
}

return super.visitCall(call);
Expand Down
Loading
Loading