You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-37483][SQL] Support push down top N to JDBC data source V2
### What changes were proposed in this pull request?
Currently, Spark supports push down limit to data source.
However, in the user's scenario, limit must have the premise of order by. Because limit and order by are more valuable together.
On the other hand, push down top N(same as order by ... limit N) outputs the data with basic order to Spark sort, the the sort of Spark may have some performance improvement.
### Why are the changes needed?
1. push down top N is very useful for users scenario.
2. push down top N could improves the performance of sort.
### Does this PR introduce _any_ user-facing change?
'No'. Just change the physical execute.
### How was this patch tested?
New tests.
Closes#34918 from beliefer/SPARK-37483.
Authored-by: Jiaan Geng <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
0 commit comments