Skip to content

Conversation

@allisonwang-db
Copy link
Contributor

What changes were proposed in this pull request?

This PR is a follow-up for SPARK-40800. It introduces a new Spark config to control the behavior of whether to always inline one-row relation subquery: spark.sql.optimizer.optimizeOneRowRelationSubquery.alwaysInline (default: true).

Why are the changes needed?

To give users more flexibility to control the correlated subquery performance.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Edited existing unit tests.

@github-actions github-actions bot added the SQL label Oct 28, 2022
@allisonwang-db
Copy link
Contributor Author

cc @cloud-fan

…onf.scala

Co-authored-by: Hyukjin Kwon <gurwls223@gmail.com>
@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in fb75631 Nov 1, 2022
SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
…ys inline one-row relation subquery

### What changes were proposed in this pull request?

This PR is a follow-up for SPARK-40800. It introduces a new Spark config to control the behavior of whether to always inline one-row relation subquery: `spark.sql.optimizer.optimizeOneRowRelationSubquery.alwaysInline` (default: true).

### Why are the changes needed?

To give users more flexibility to control the correlated subquery performance.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Edited existing unit tests.

Closes apache#38429 from allisonwang-db/spark-40800-follow-up.

Lead-authored-by: allisonwang-db <allison.wang@databricks.com>
Co-authored-by: Wenchen Fan <cloud0fan@gmail.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
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.

3 participants