You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jia Fan (Jira)" <ji...@apache.org> on 2023/04/25 14:09:00 UTC
[jira] [Commented] (SPARK-36112) Enable DecorrelateInnerQuery for IN/EXISTS subqueries
[ https://issues.apache.org/jira/browse/SPARK-36112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17716289#comment-17716289 ]
Jia Fan commented on SPARK-36112:
---------------------------------
Hi, [~allisonwang-db] I checked the code. Seem like the only work is change the code in `PullupCorrelatedPredicates`. Just make sure Exists invoke `decorrelate`.
!image-2023-04-25-21-51-55-961.png|width=617,height=275!
Because `DecorrelateInnerQuery` already support Filter in subQuery. And Exists also be supported in `RewritePredicateSubquery`. Should I change just one line? Or is there something else I don't understand?
> Enable DecorrelateInnerQuery for IN/EXISTS subqueries
> -----------------------------------------------------
>
> Key: SPARK-36112
> URL: https://issues.apache.org/jira/browse/SPARK-36112
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.2.0
> Reporter: Allison Wang
> Priority: Major
> Attachments: image-2023-04-25-21-51-55-961.png
>
>
> Currently, `DecorrelateInnerQuery` is only enabled for scalar and lateral subqueries. We should enable `DecorrelateInnerQuery` for IN/EXISTS subqueries. Note we need to add the logic to rewrite domain joins in `RewritePredicateSubquery`.
--
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