Skip to content

Introduction of MultiScanOptions#13837

Closed
krhancoc wants to merge 5 commits intofacebook:mainfrom
krhancoc:multiscanoptions
Closed

Introduction of MultiScanOptions#13837
krhancoc wants to merge 5 commits intofacebook:mainfrom
krhancoc:multiscanoptions

Conversation

@krhancoc
Copy link
Contributor

@krhancoc krhancoc commented Aug 5, 2025

To better support future options, and changes, we need to convert the std::vector to something more malleable.

This diff introduces the MultiScanOptions structure and pipes it through the various points in the code in the Prepare path.

Test Plan:
Ensure all associated tests pass

make check all

@meta-cla meta-cla bot added the CLA Signed label Aug 5, 2025
@facebook-github-bot
Copy link
Contributor

@krhancoc has imported this pull request. If you are a Meta employee, you can view this in D79655229.

@facebook-github-bot
Copy link
Contributor

@krhancoc has imported this pull request. If you are a Meta employee, you can view this in D79655229.

@krhancoc krhancoc requested review from anand1976 and cbi42 August 5, 2025 20:43
Copy link
Contributor

@cbi42 cbi42 left a comment

Choose a reason for hiding this comment

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

The change looks good to me. I think MultiScanArg may be a better name (similar to IngestExternalFileOptions vs IngestExternalFileArg). Options usually define things that affect how the specific operation is done and could be reused across operations. Though by the same argument, not sure if coalescing_threshold fits into MultiScanArg.

// Destructor
~MultiScanOptions() {}

const std::vector<ScanOptions>& GetScanOptions() const {
Copy link
Contributor

Choose a reason for hiding this comment

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

GetScanRanges?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea naming is hard. But yea changes it out here.

@facebook-github-bot
Copy link
Contributor

@krhancoc has imported this pull request. If you are a Meta employee, you can view this in D79655229.

Copy link
Contributor

@cbi42 cbi42 left a comment

Choose a reason for hiding this comment

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

LGTM thanks

@facebook-github-bot
Copy link
Contributor

@krhancoc merged this pull request in 0b44282.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants