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

Export constant vectors as REE arrow schema #7327

Closed
wants to merge 1 commit into from

Conversation

pedroerp
Copy link
Contributor

Summary:
This is the first PR to add support for constant vectors in Velox
through the Arrow bridge. The PR maps the types and adds appropriate tests. The
next one will map the actual data.

Differential Revision: D50819081

@netlify
Copy link

netlify bot commented Oct 30, 2023

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 02eb286
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/6542cedbf228a70008dad3ec

@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 Oct 30, 2023
@facebook-github-bot
Copy link
Contributor

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

pedroerp added a commit to pedroerp/velox-1 that referenced this pull request Oct 31, 2023
Summary:

This is the first PR to add support for constant vectors in Velox
through the Arrow bridge. The PR maps the types and adds appropriate tests. The
next one will map the actual data.

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

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

pedroerp added a commit to pedroerp/velox-1 that referenced this pull request Oct 31, 2023
Summary:

This is the first PR to add support for constant vectors in Velox
through the Arrow bridge. The PR maps the types and adds appropriate tests. The
next one will map the actual data.

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

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

Copy link
Collaborator

@majetideepak majetideepak left a comment

Choose a reason for hiding this comment

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

The change looks good. Two minor comments that can be addressed in the follow-up PR.

@@ -91,6 +96,59 @@ class ArrowBridgeSchemaExportTest : public testing::Test {
}
}

void testConstant(const TypePtr& type, const char* arrowFormat) {
ArrowSchema arrowSchema;
const bool isScalar = type->size() == 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit const bool isScalar = (type->size() == 0);

@@ -644,6 +663,26 @@ void exportToArrow(const VectorPtr& vec, ArrowSchema& arrowSchema) {
arrowSchema.dictionary = bridgeHolder->dictionary.get();
exportToArrow(vec->valueVector(), *arrowSchema.dictionary);

} else if (vec->encoding() == VectorEncoding::Simple::CONSTANT) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

pedroerp added a commit to pedroerp/velox-1 that referenced this pull request Nov 1, 2023
Summary:

This is the first PR to add support for constant vectors in Velox
through the Arrow bridge. The PR maps the types and adds appropriate tests. The
next one will map the actual data.

Reviewed By: mbasmanova

Differential Revision: D50819081
Summary:

This is the first PR to add support for constant vectors in Velox
through the Arrow bridge. The PR maps the types and adds appropriate tests. The
next one will map the actual data.

Reviewed By: mbasmanova

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

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

@facebook-github-bot
Copy link
Contributor

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

@pedroerp
Copy link
Contributor Author

pedroerp commented Nov 1, 2023

Thanks @majetideepak , comments addressed.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in d8d362c.

Copy link

Conbench analyzed the 1 benchmark run on commit d8d362cd.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

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.

None yet

3 participants