forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add VectorFuzzer::fuzzInputFlatRow API (facebookincubator#6849)
Summary: It is a good practice to use the fuzzer to generate row vectors as test data while writing UT codes (e.g. fuzzer.fuzzRow(rowType_). But in some scenarios, we need to control the generation encoding, say the parquet writer uses arrow parquet writer, which could not support constant and dictionary encoding vectors. See discussion here facebookincubator#6608 (comment). With this new API, we could use fuzzer like the following, ```C++ VectorFuzzer fuzzer({.vectorSize = vectorSize}, leafPool_.get()); fuzzer.fuzzInputFlatRow(rowType)); ``` Pull Request resolved: facebookincubator#6849 Reviewed By: kgpai Differential Revision: D49830128 Pulled By: mbasmanova fbshipit-source-id: 17f5f80c9c07577fd2cef32f9e4733155f1a7113
- Loading branch information
1 parent
d090149
commit e9e323f
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters