Skip to content

[MINOR] Refactor operator-enable configs and remove dead code#12212

Open
philo-he wants to merge 2 commits into
apache:mainfrom
philo-he:refactor-BNLJ
Open

[MINOR] Refactor operator-enable configs and remove dead code#12212
philo-he wants to merge 2 commits into
apache:mainfrom
philo-he:refactor-BNLJ

Conversation

@philo-he
Copy link
Copy Markdown
Member

@philo-he philo-he commented Jun 1, 2026

What changes are proposed in this pull request?

  1. Remove supportExpandExec() from BackendSettingsApi — both backends (Velox and ClickHouse) return true, making the check in ExpandExecTransformer dead code.
  2. Remove redundant config check in BroadcastNestedLoopJoinExecTransformer.doValidateInternal()Validators.scala already gates on the same config before the transformer is ever created.
  3. Rename cartesianProductTransformerEnabled / broadcastNestedLoopJoinTransformerEnabled to enableColumnarCartesianProduct / enableColumnarBroadcastNestedLoopJoin to follow the established enableColumnarXxx naming convention. Also fixes the TransformerTransformer typo in the original name.

How was this patch tested?

Relies on CI verification.

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

No.

@github-actions github-actions Bot added CORE works for Gluten Core VELOX CLICKHOUSE labels Jun 1, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

Run Gluten Clickhouse CI on x86

@philo-he philo-he changed the title [MINOR] Refactor operator-enable configs to consistent enableColumnarXxx naming and remove dead code [MINOR] Refactor operator-enable configs to consistent enableColumnarXxx naming and remove dead code Jun 1, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

Run Gluten Clickhouse CI on x86

@philo-he philo-he changed the title [MINOR] Refactor operator-enable configs to consistent enableColumnarXxx naming and remove dead code [MINOR] Clean up operator-enable configs and remove redundant validation checks Jun 1, 2026
@philo-he philo-he changed the title [MINOR] Clean up operator-enable configs and remove redundant validation checks [MINOR] Refactor operator-enable configs and remove dead code Jun 1, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

Run Gluten Clickhouse CI on x86

buildConf("spark.gluten.sql.broadcastNestedLoopJoinTransformerEnabled")
.doc("Config to enable BroadcastNestedLoopJoinExecTransformer.")
val COLUMNAR_BROADCAST_NESTED_LOOP_JOIN_ENABLED =
buildConf("spark.gluten.sql.columnar.broadcastNestedLoopJoin")
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.

We should update the docs along with the configuration naming changes

I noticed that the current names are inconsistent for the operator-level enablement configurations. Maybe we can unify the naming using a fixed pattern, such as spark.gluten.sql.columnar.xxx.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.

@marin-ma, thank you so much for the review. I just updated the PR according to your comment. Could you take a look again when you get a chance? Thank you.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

Run Gluten Clickhouse CI on x86

@github-actions github-actions Bot added the DOCS label Jun 3, 2026
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.

2 participants