Skip to content

[FLINK-39985] Replace ReplaceMinusWithAntiJoinRule with Calcite Minus…#28522

Open
liuyongvs wants to merge 1 commit into
apache:masterfrom
liuyongvs:flink-39985-replace-minus-rule
Open

[FLINK-39985] Replace ReplaceMinusWithAntiJoinRule with Calcite Minus…#28522
liuyongvs wants to merge 1 commit into
apache:masterfrom
liuyongvs:flink-39985-replace-minus-rule

Conversation

@liuyongvs

@liuyongvs liuyongvs commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

What is the purpose of the change

This is follow up PR after Calcite upgrade to 1.40.0

There 1 Calcite classes which might be removed from Flink codebase

Brief change log

Replace ReplaceMinusWithAntiJoinRule with Calcite MinusToAntiJoinRule

Verifying this change

existing tests

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): ( no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
  • The serializers: (no)
  • The runtime per-record code paths (performance sensitive): (no)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
  • The S3 file system connector: (no)

Documentation

  • Does this pull request introduce a new feature? ( no)
  • If yes, how is the feature documented? (not applicable)

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

…ToAntiJoinRule

Calcite 1.40 provides MinusToAntiJoinRule which is a superset of
Flink ReplaceMinusWithAntiJoinRule: it supports n-way inputs
(vs. 2-way only) and uses IS NOT DISTINCT FROM for NULL-safe
comparison (semantically equivalent to Flink OR(=, AND(IS NULL, IS NULL))).

This commit removes the Flink-specific rule and uses the Calcite
rule instead.
@liuyongvs liuyongvs force-pushed the flink-39985-replace-minus-rule branch from c74c667 to 1083208 Compare June 24, 2026 07:19
@flinkbot

flinkbot commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants