Skip to content

[SPARK-52929][SQL] Support MySQL and SQLServer connector for DSv2 Join pushdown#51637

Closed
PetarVasiljevic-DB wants to merge 1 commit intoapache:masterfrom
PetarVasiljevic-DB:support_join_for_mysql
Closed

[SPARK-52929][SQL] Support MySQL and SQLServer connector for DSv2 Join pushdown#51637
PetarVasiljevic-DB wants to merge 1 commit intoapache:masterfrom
PetarVasiljevic-DB:support_join_for_mysql

Conversation

@PetarVasiljevic-DB
Copy link
Copy Markdown
Contributor

@PetarVasiljevic-DB PetarVasiljevic-DB commented Jul 23, 2025

What changes were proposed in this pull request?

Similar to #51594, I am enabling the join pushdown for MySQL and SQLServer connectors.

Additionally, I am moving JoinPushdownAliasGenerator to JdbcSQLQueryBuilder and using it there as well to generate new subquery alias used for full join subquery (previously, subqueries were generated only for left and right side, but now the whole thing needs to be subqueried). This is needed for these 2 dialects. H2, Oracle and Postgres didn't hit this issue, but they also still work with this, so there is no need for specialization.

Why are the changes needed?

MySQL and SQLServer connectors don't support join pushdown.

Does this PR introduce any user-facing change?

No, since the flag spark.sql.optimizer.datasourceV2JoinPushdown is disabled. If enabled, it will be attempted to push down to join directly to the scan node.

How was this patch tested?

New tests.

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

@github-actions github-actions bot added the SQL label Jul 23, 2025
@cloud-fan
Copy link
Copy Markdown
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 79ba12a Jul 24, 2025
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