Yuming Wang created SPARK-39511: ----------------------------------- Summary: Push limit 1 to right side if join type is LeftSemiOrAnti and join condition is empty Key: SPARK-39511 URL: https://issues.apache.org/jira/browse/SPARK-39511 Project: Spark Issue Type: Improvement Components: SQL Affects Versions: 3.4.0 Reporter: Yuming Wang
Example: {code:scala} spark.range(10000).write.saveAsTable("t1") spark.sql("select * from (select id, '1' as type from t1) where type in (select cast(1 as string) from range(100))").show {code} -- This message was sent by Atlassian Jira (v8.20.7#820007) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org