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

refactor: Refactor spiller to have better abstraction #11656

Closed
wants to merge 1 commit into from

Conversation

tanjialiang
Copy link
Contributor

@tanjialiang tanjialiang commented Nov 26, 2024

Spiller is a single class dealing with multiple different spilling scenarios. We want to abstract out Spiller and make its implementations closer to its use sites and expose different use case APIs.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 26, 2024
Copy link

netlify bot commented Nov 26, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit dfd45b5
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/676f8df8f6e236000896d899

velox/exec/Spiller.h Outdated Show resolved Hide resolved
@tanjialiang tanjialiang marked this pull request as ready for review December 2, 2024 18:31
Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tanjialiang LGTM % minors. Thanks!

std::vector<SpillRun> spillRuns_;

private:
std::unique_ptr<SpillStatus> writeSpill(int32_t partition);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you keep the original comment?

velox/exec/Spiller.h Outdated Show resolved Hide resolved
velox/exec/Spiller.h Outdated Show resolved Hide resolved
velox/exec/Spiller.h Show resolved Hide resolved
velox/exec/Spiller.h Outdated Show resolved Hide resolved
velox/exec/GroupingSet.h Outdated Show resolved Hide resolved
velox/exec/HashBuild.h Outdated Show resolved Hide resolved
velox/exec/RowNumber.h Outdated Show resolved Hide resolved
velox/exec/SortWindowBuild.cpp Outdated Show resolved Hide resolved
velox/exec/TopNRowNumber.h Outdated Show resolved Hide resolved
velox/exec/GroupingSet.h Show resolved Hide resolved
velox/exec/GroupingSet.h Outdated Show resolved Hide resolved
Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tanjialiang thanks for the update % minors.

velox/exec/GroupingSet.cpp Outdated Show resolved Hide resolved
velox/exec/RowNumber.h Outdated Show resolved Hide resolved
velox/exec/TopNRowNumber.h Outdated Show resolved Hide resolved
velox/exec/SortWindowBuild.h Outdated Show resolved Hide resolved
velox/exec/SortBuffer.cpp Outdated Show resolved Hide resolved
velox/exec/SortBuffer.h Outdated Show resolved Hide resolved
velox/exec/Spiller.h Show resolved Hide resolved
velox/exec/Spiller.h Show resolved Hide resolved
Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tanjialiang good job. Thanks for the refactor!

@facebook-github-bot
Copy link
Contributor

@tanjialiang has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@tanjialiang tanjialiang force-pushed the spill_refac branch 4 times, most recently from a7cb54f to b0101b1 Compare December 27, 2024 20:12
@facebook-github-bot
Copy link
Contributor

@tanjialiang has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@tanjialiang has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

…tor#11656)

Summary:
Spiller is a single class dealing with multiple different spilling scenarios. We want to abstract out Spiller and make its implementations closer to its use sites and expose different use case APIs.


Reviewed By: xiaoxmeng

Differential Revision: D67666563

Pulled By: tanjialiang
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67666563

@facebook-github-bot
Copy link
Contributor

@tanjialiang merged this pull request in f973c65.

athmaja-n pushed a commit to athmaja-n/velox that referenced this pull request Jan 10, 2025
…tor#11656)

Summary:
Spiller is a single class dealing with multiple different spilling scenarios. We want to abstract out Spiller and make its implementations closer to its use sites and expose different use case APIs.

Pull Request resolved: facebookincubator#11656

Reviewed By: xiaoxmeng

Differential Revision: D67666563

Pulled By: tanjialiang

fbshipit-source-id: 66c5cfc307e248f00c1ad871409023f05d0da4d0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants