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

Add array vector reader for simple arrays #22

Closed

Conversation

christycylee
Copy link
Contributor

Summary:

  1. Added VectorReader for primitive types (e.g. array of fixed length types and array of varchar / varbin types). It is located in velox/experimental/codegen/vector_function/ComplexVectorReader.h. The class invokes the corresponding VectorReader on its elements.
  2. Added offset as a parameter to primitive types' VectorReaders. This field is used by the complexType VectorReaders to locate the elements.
  3. Added simple string VectorReader test.
  4. Added Array VectorReader test.
  5. Added VectorReaderTestBase. Some of the code is borrowed from UnsafeRowSerializerTest, we can refactor to share the VectorReader utils later.

Differential Revision: D30048466

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Aug 11, 2021
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

Summary:
velox/experimental/codegen did not have its CMakeLists.txt set up properly, so some tests weren't ran when building with cmake. I had to disable one test, that will be addressed in the future.

Pull Request resolved: facebookincubator/velox#26

Differential Revision: D30262438

Pulled By: christycylee

fbshipit-source-id: 76937801aa82fe870c6b2234f91e2e3825928454
Differential Revision: D30024069

fbshipit-source-id: 5e9947058eac9efd781c1b6baae3b4b2f0acf564
Summary:
Pull Request resolved: facebookincubator/velox#22

1. Added VectorReader for primitive types (e.g. array of fixed length types and array of varchar / varbin types). It is located in `velox/experimental/codegen/vector_function/ComplexVectorReader.h`. The class invokes the corresponding VectorReader on its elements.
2. Added `offset` as a parameter to primitive types' VectorReaders. This field is used by the complexType VectorReaders to locate the elements.
3. Added simple string VectorReader test.
4. Added Array VectorReader test.
5. Added VectorReaderTestBase.

Differential Revision: D30048466

fbshipit-source-id: 2bee4f66f479631ded0352a7539c5bd78906c715
@facebook-github-bot
Copy link
Contributor

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

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants