You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (Jira)" <ji...@apache.org> on 2023/02/21 14:28:00 UTC
[jira] [Created] (SPARK-42513) Push topK through join
Yuming Wang created SPARK-42513:
-----------------------------------
Summary: Push topK through join
Key: SPARK-42513
URL: https://issues.apache.org/jira/browse/SPARK-42513
Project: Spark
Issue Type: Improvement
Components: SQL
Affects Versions: 3.4.0
Reporter: Yuming Wang
{code:scala}
spark.range(100000000).selectExpr("id % 10000 as a", "id as b").write.saveAsTable("t1")
spark.range(100000000).selectExpr("id % 10000 as x", "id as y").write.saveAsTable("t2")
sql("select * from t1 left join t2 on a = x order by b limit 5").collect()
spark.sql("set spark.sql.optimizer.excludedRules=org.apache.spark.sql.catalyst.optimizer.LimitPushDown")
sql("select * from t1 left join t2 on a = x order by b limit 5").collect()
{code}
--
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