E52F [WIP][SPARK-55241][SQL]. Fix SQL Streaming idempotency broken, with PropagateEmptyRelation and InferFiltersFromConstraint run as part of Fixed Number of iterations by ahshahid · Pull Request #54022 · apache/spark · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@ahshahid
Copy link
Contributor
@ahshahid ahshahid commented Jan 28, 2026

What changes were proposed in this pull request?

PropagteEmptyRelation rule transformation is now skipped for Filter Node if streaming is true.

Why are the changes needed?

The change is needed to ensure idempotency is achieved for streaming relations if PropagateEmptyRelation and InferFiltersFromConstraint rules are run as part of Fixed Iterations. Because the tramsform is already being skipped for Join node in case of streaming relation, it should similarly be skipped for Filter Node too, else the behaviour clashes with the InferFilterFromConstraints rule.
The need for "InferFiltersFromConstraint" to be run as FixedPoint is needed for the following PR
#53838

Does this PR introduce any user-facing change?

No

How was this patch tested?

Added bug test/

Was this patch authored or co-authored using generative AI tooling?

No

…teEmptyRelation and InferFiltersFromConstraint run as part of Fixed Number of iterations
@github-actions
Copy link

JIRA Issue Information

=== Bug SPARK-55241 ===
Summary: Idempotency of SQL Streaming involving Joins is broken if InferFiltersFromConstraint and PropagateEmptyRelation rules are added as part of Optimization rules
Assignee: None
Status: Open
Affected: ["4.2.0","4.1.1"]


This comment was automatically generated by GitHub Actions

@github-actions github-actions bot added the SQL label Jan 28, 2026
…teEmptyRelation and InferFiltersFromConstraint run as part of Fixed Number of iterations
…teEmptyRelation and InferFiltersFromConstraint run as part of Fixed Number of iterations
…teEmptyRelation and InferFiltersFromConstraint run as part of Fixed Number of iterations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0