-
Notifications
You must be signed in to change notification settings - Fork 47
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
Dist sort cpu #574
Dist sort cpu #574
Conversation
…pling; add empty table test; change repartition
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.
@kaiyingshan Thank you for doing this. I noticed a couple of things.
- Please use a code formatter (we use Google style and wrapping at 100 chars) - Almost all IDEs provide this support
- We could reuse more of the comparators and util methods. I've added comments where things could be simplified using our existing methods.
Please ping me if you need any clarification.
cpp/src/cylon/table.cpp
Outdated
SortOptions sort_options) { | ||
return DistributedSort(table, std::vector<int>{sort_column}, output, std::vector<bool>{ascending}, | ||
sort_options); | ||
Status SampleTableUniform(const std::shared_ptr<Table> &local_sorted, |
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.
IMO this method should move to cpp/src/cylon/util/arrow_utils.hpp
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.
@kaiyingshan I made some comments with 1 possible bug. Other that this looks good to me. Let me know if you need anything from my end.
Co-authored-by: niranda perera <[email protected]>
conda has introduced some |
implement distributed sort regular sampling, change
distributedSort
default option to regular sampling (involves changing SortOptions)