-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
✅ Deploy Preview for meta-velox canceled.
|
This pull request was exported from Phabricator. Differential Revision: D66968752 |
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.
@kagamiori thanks for adding this suport!
9a48281
to
2e5eae3
Compare
…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
This pull request was exported from Phabricator. Differential Revision: D66968752 |
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.
@kagamiori thanks for the update. LGTM!
velox/vector/fuzzer/VectorFuzzer.cpp
Outdated
FuzzerGenerator& rng, | ||
const std::vector<TypePtr>& scalarTypes, | ||
int minWidth) { | ||
auto numFields = 1 + rand<uint32_t>(rng) % 10; |
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.
const auto numFields
velox/vector/fuzzer/VectorFuzzer.cpp
Outdated
randTypeByWidth(rng, scalarTypes, minWidth - keyWidth - 1)); | ||
} | ||
// case 2: | ||
default: { |
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.
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
2e5eae3
to
8a118e5
Compare
This pull request was exported from Phabricator. Differential Revision: D66968752 |
This pull request has been merged in 3810d26. |
…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
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