-
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: Table evolution fuzzer #11872
feat: Table evolution fuzzer #11872
Conversation
This pull request was exported from Phabricator. Differential Revision: D67283632 |
✅ Deploy Preview for meta-velox canceled.
|
Summary: Basic version of table evolution fuzzer. Full design of the fuzzer can be found at https://docs.google.com/document/d/18jjNRknSxI99mgdL7eDMzkq65i-mi47Ukymi3JkXzUA/edit Differential Revision: D67283632
60da22a
to
6154a11
Compare
This pull request was exported from Phabricator. Differential Revision: D67283632 |
Summary: Basic version of table evolution fuzzer. Full design of the fuzzer can be found at https://docs.google.com/document/d/18jjNRknSxI99mgdL7eDMzkq65i-mi47Ukymi3JkXzUA/edit Differential Revision: D67283632
6154a11
to
506aa7d
Compare
This pull request was exported from Phabricator. Differential Revision: D67283632 |
506aa7d
to
623c129
Compare
Summary: Basic version of table evolution fuzzer. Full design of the fuzzer can be found at https://docs.google.com/document/d/18jjNRknSxI99mgdL7eDMzkq65i-mi47Ukymi3JkXzUA/edit Differential Revision: D67283632
This pull request was exported from Phabricator. Differential Revision: D67283632 |
Summary: Basic version of table evolution fuzzer. Full design of the fuzzer can be found at https://docs.google.com/document/d/18jjNRknSxI99mgdL7eDMzkq65i-mi47Ukymi3JkXzUA/edit Differential Revision: D67283632
623c129
to
ff7504d
Compare
This pull request was exported from Phabricator. Differential Revision: D67283632 |
Summary: X-link: facebookincubator/velox#11872 Basic version of table evolution fuzzer. Full design of the fuzzer can be found at https://docs.google.com/document/d/18jjNRknSxI99mgdL7eDMzkq65i-mi47Ukymi3JkXzUA/edit Differential Revision: D67283632
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.
@Yuhta LGTM % minors. Thanks!
for (int i = 0; i < config_.evolutionCount; ++i) { | ||
auto data = vectorFuzzer_.fuzzRow(setups[i].schema, kVectorSize, false); | ||
auto actualDir = fmt::format("{}/actual_{}", tableDir->getPath(), i); | ||
VELOX_CHECK(std::filesystem::create_directory(actualDir)); |
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.
why not use velox fs to create?
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.
Just one fewer dependency since testing that component is not in the scope of this fuzzer
Summary: X-link: facebookincubator/velox#11872 Basic version of table evolution fuzzer. Full design of the fuzzer can be found at https://docs.google.com/document/d/18jjNRknSxI99mgdL7eDMzkq65i-mi47Ukymi3JkXzUA/edit Differential Revision: D67283632
Summary: X-link: facebookincubator/nimble#116 Basic version of table evolution fuzzer. Full design of the fuzzer can be found at https://docs.google.com/document/d/18jjNRknSxI99mgdL7eDMzkq65i-mi47Ukymi3JkXzUA/edit Differential Revision: D67283632
ff7504d
to
0e18012
Compare
This pull request was exported from Phabricator. Differential Revision: D67283632 |
Summary: X-link: facebookincubator/nimble#116 Basic version of table evolution fuzzer. Full design of the fuzzer can be found at https://docs.google.com/document/d/18jjNRknSxI99mgdL7eDMzkq65i-mi47Ukymi3JkXzUA/edit Differential Revision: D67283632
0e18012
to
92f241f
Compare
This pull request was exported from Phabricator. Differential Revision: D67283632 |
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.
@Yuhta thanks for the update!
Summary: Pull Request resolved: #116 X-link: facebookincubator/velox#11872 Basic version of table evolution fuzzer. Full design of the fuzzer can be found at https://docs.google.com/document/d/18jjNRknSxI99mgdL7eDMzkq65i-mi47Ukymi3JkXzUA/edit Reviewed By: xiaoxmeng Differential Revision: D67283632 fbshipit-source-id: c41ac3cfde75eec68ec86a5fa43936cd2bcd608b
This pull request has been merged in 2f81755. |
opts.allowDictionaryVector = false; | ||
opts.allowConstantVector = false; |
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.
Curious why we set these options to false here? They were implicitly true before this change?
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.
The test is not well written and they assume the top level vector is not encoded in constant or dictionary. I changed the random number generator to a faster implementation and these assumption no longer holds. We can fix the test to decode instead of use as<>
cast.
auto names = old.names(); | ||
auto types = old.children(); | ||
for (int i = 0, j = 0; i < old.size(); ++i) { | ||
// Skip evolving bucket column. |
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.
Is it not possible of bucket column being evolved?
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.
No the Hive partition function gives different hashes for same value in REAL vs in DOUBLE.
Summary: Basic version of table evolution fuzzer. Full design of the fuzzer can be found at https://docs.google.com/document/d/18jjNRknSxI99mgdL7eDMzkq65i-mi47Ukymi3JkXzUA/edit
Differential Revision: D67283632