[ https://issues.apache.org/jira/browse/SPARK-36444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17488582#comment-17488582 ]
Apache Spark commented on SPARK-36444: -------------------------------------- User 'pan3793' has created a pull request for this issue: https://github.com/apache/spark/pull/35431 > Remove OptimizeSubqueries from batch of PartitionPruning > -------------------------------------------------------- > > Key: SPARK-36444 > URL: https://issues.apache.org/jira/browse/SPARK-36444 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 3.0.3, 3.1.2, 3.2.0 > Reporter: Yuming Wang > Assignee: Yuming Wang > Priority: Major > Fix For: 3.2.0 > > > To support this case: > {code:scala} > sql( > """ > |SELECT date_id, product_id FROM fact_sk f > |JOIN (select store_id + 3 as new_store_id from dim_store where > country = 'US') s > |ON f.store_id = s.new_store_id > """.stripMargin) > {code} -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org