Skip to content

[SPARK-40193][SQL][FOLLOWUP] Rename spark.sql.optimizer.mergeSubplans.( -> filterPropagation.)symmetricFilterPropagation.enabled#55633

Closed
dongjoon-hyun wants to merge 2 commits into
apache:masterfrom
dongjoon-hyun:dongjoon/suspicious-hofstadter-e56b11
Closed

[SPARK-40193][SQL][FOLLOWUP] Rename spark.sql.optimizer.mergeSubplans.( -> filterPropagation.)symmetricFilterPropagation.enabled#55633
dongjoon-hyun wants to merge 2 commits into
apache:masterfrom
dongjoon-hyun:dongjoon/suspicious-hofstadter-e56b11

Conversation

@dongjoon-hyun
Copy link
Copy Markdown
Member

@dongjoon-hyun dongjoon-hyun commented Apr 30, 2026

What changes were proposed in this pull request?

This PR renames the SQL config key

spark.sql.optimizer.mergeSubplans.symmetricFilterPropagation.enabled to spark.sql.optimizer.mergeSubplans.filterPropagation.symmetricFilterPropagation.enabled.

Why are the changes needed?

To follow the Apache Spark configuration namespace rule. The new key better reflects the configuration hierarchy. spark.sql.optimizer.mergeSubplans.filterPropagation.enabled is the parent gate for filter propagation in MergeSubplans, and the symmetric variant is a sub-feature of it. Nesting the symmetric flag under filterPropagation.* makes that relationship explicit, and groups related options together when listed alphabetically.

The previous key mergeSubplans.symmetricFilterPropagation.enabled placed the two sibling options at different levels of the namespace, which obscured the dependency (the symmetric flag has no effect when filter propagation is disabled, as documented in the config doc).

This config was added in 4.2.0 and has not been released yet, so no backwards-compat alias is required.

Does this PR introduce any user-facing change?

No. The config has not been released yet (introduced for 4.2.0).

How was this patch tested?

Pass the CIs.

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

Generated-by: Claude Opus 4.7

…terPropagation.)symmetricFilterPropagation.enabled`
@dongjoon-hyun
Copy link
Copy Markdown
Member Author

cc @peter-toth


val MERGE_SUBPLANS_SYMMETRIC_FILTER_PROPAGATION_ENABLED =
buildConf("spark.sql.optimizer.mergeSubplans.symmetricFilterPropagation.enabled")
buildConf("spark.sql.optimizer.mergeSubplans.filterPropagation.symmetricFilterPropagation.enabled")
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we have the namespace prefix, spark.sql.optimizer.mergeSubplans.filterPropagation, already, we may want to change symmetricFilterPropagation part more specifically. Please let me know if you want to propose a better name than symmetricFilterPropagation, @peter-toth .

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name sounds good to me.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. Thank you for the confirmation.

@dongjoon-hyun
Copy link
Copy Markdown
Member Author

Thank you, @peter-toth ~

@dongjoon-hyun
Copy link
Copy Markdown
Member Author

Merged to master for Apache Spark 4.2.0.

@dongjoon-hyun dongjoon-hyun deleted the dongjoon/suspicious-hofstadter-e56b11 branch April 30, 2026 20:55
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