Skip to content
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

Merged
merged 35 commits into from
Apr 22, 2022
Merged

Dist sort cpu #574

merged 35 commits into from
Apr 22, 2022

Conversation

kaiyingshan
Copy link
Collaborator

implement distributed sort regular sampling, change distributedSort default option to regular sampling (involves changing SortOptions)

Copy link
Collaborator

@nirandaperera nirandaperera left a 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.

  1. Please use a code formatter (we use Google style and wrapping at 100 chars) - Almost all IDEs provide this support
  2. 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.

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,
Copy link
Collaborator

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

Copy link
Collaborator

@nirandaperera nirandaperera left a 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.

@nirandaperera
Copy link
Collaborator

conda has introduced some -external artifacts for OpenMPI 4.1.3* and it is messing up the entire conda build.

@nirandaperera nirandaperera merged commit a820ed8 into cylondata:main Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants