You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2026/03/27 17:05:00 UTC

[jira] [Commented] (SPARK-55241) Idempotency of SQL Streaming involving Joins is broken if InferFiltersFromConstraint and PropagateEmptyRelation rules are added as part of Optimization rules

    [ https://issues.apache.org/jira/browse/SPARK-55241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18069050#comment-18069050 ] 

Hudson commented on SPARK-55241:
--------------------------------

User 'ahshahid' has created a pull request for this issue:
https://github.com/apache/spark/pull/53983

> Idempotency of SQL Streaming involving Joins is broken if InferFiltersFromConstraint and PropagateEmptyRelation rules are added as part of Optimization rules 
> --------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-55241
>                 URL: https://issues.apache.org/jira/browse/SPARK-55241
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 4.2.0, 4.1.1
>            Reporter: Asif
>            Priority: Major
>              Labels: pull-request-available
>
> To fix issues SPARK-55185 and SPARK-55072, PropagateEmptyRelations and InferFiltersFromConstraints rules need to be added to the Operator Optimizations  Batch rules, which run for Fixed Iterations.
> But addition of these 2 rules break the idempotency of SPARK SQL Streaming  in certain cases.
> The issue is that in PropagateEmptyRelation,  the Join case is transformation is skipped ( rightly so , for streaming case), but the Filter case transformation is allowed. 
> Ideally the Filter case transformation should also be suppressed for Streaming case, IMO.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org