-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort + limit topk optimization (initial) #893
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
36007fa
Rust:Add method to retreive fetch rows during sort
ayushdg 262d018
Update sort plugin to use nsmallest/largest if applicalbe
ayushdg 0b42662
move topk optimization checks to it's own function
ayushdg 7c91bf4
Fix check for is_topk_optimizable
ayushdg 40e14e4
Add topk tests
ayushdg 6f10f54
Merge branch 'main' into sort-topk-optimization
ayushdg de0355b
Un-xfail q4
charlesbluca 36a79f8
Add sort topk-nelem-limit as config option
ayushdg 7eb095e
Add check for topk config option to is_topk_optimizable
ayushdg 7d16e6d
Add more topk sort tests
ayushdg e29742c
Merge branch 'sort-topk-optimization' of github.com:ayushdg/dask-sql …
ayushdg 6f39eb5
Merge branch 'main' of github.com:dask-contrib/dask-sql into sort-top…
ayushdg e87f3c9
use common variable for rel.sort plan
ayushdg 8e9c2c5
Apply suggestions from code review
ayushdg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
import pytest | ||
|
||
XFAIL_QUERIES = ( | ||
4, | ||
5, | ||
6, | ||
8, | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of interest, do we know what in particular in this PR caused q4 to start passing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually looked into this a bit the errors from this query come from one of the rows having a non standard char
C�TE D'IVOIRE
that arrow cannot render.It impacts the Dask Dataframe version and only impacts the dask-cudf version if we try to print/repr it.
For whatever reason dask-cudf sort_values ended up invoking the
repr
method in cudf which is a bit confusing. Thensmallest
api doesn't causing the repr function to be invoked allowing the query to passThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah okay that makes sense - looks like what's happening here is that as part of Dask's sorting algorithm, we pass a dataframe of quantile division to
map_partitions
, which Dask then attempts to tokenize using a string representation of the frame.