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

feat(fuzzer): Add VectorFuzzer::randTypeByWidth() #11800

Closed
wants to merge 1 commit into from

Conversation

kagamiori
Copy link
Contributor

Summary:
Add an API to allow generate a random type by the type width, i.e., the number of
streams involved when reading or writing data of this type.

Differential Revision: D66968752

@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 Dec 9, 2024
Copy link

netlify bot commented Dec 9, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 8a118e5
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/6764618dcae31b0008f49709

@facebook-github-bot
Copy link
Contributor

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

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.

@kagamiori thanks for adding this suport!

kagamiori added a commit to kagamiori/velox that referenced this pull request Dec 16, 2024
…11800)

Summary:

Add an API to allow generate a random type by the type width, i.e., the number of 
streams involved when reading or writing data of this type.

Differential Revision: D66968752
@facebook-github-bot
Copy link
Contributor

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

@kagamiori kagamiori requested a review from xiaoxmeng December 16, 2024 23:06
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.

@kagamiori thanks for the update. LGTM!

FuzzerGenerator& rng,
const std::vector<TypePtr>& scalarTypes,
int minWidth) {
auto numFields = 1 + rand<uint32_t>(rng) % 10;
Copy link
Contributor

Choose a reason for hiding this comment

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

const auto numFields

randTypeByWidth(rng, scalarTypes, minWidth - keyWidth - 1));
}
// case 2:
default: {
Copy link
Contributor

Choose a reason for hiding this comment

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

remove {} like case 0 if there is no local var in the case statement

…11800)

Summary:

Add an API to allow generate a random type by the type width, i.e., the number of 
streams involved when reading or writing data of this type.

Reviewed By: xiaoxmeng

Differential Revision: D66968752
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 3810d26.

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

Summary:
Pull Request resolved: facebookincubator#11800

Add an API to allow generate a random type by the type width, i.e., the number of
streams involved when reading or writing data of this type.

Reviewed By: xiaoxmeng

Differential Revision: D66968752

fbshipit-source-id: 0cddfdf6ec350c6f3c201bb993991cd4fec8f89e
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