-
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(python): Register TPC-H connector #12318
base: main
Are you sure you want to change the base?
Conversation
Summary: Enable PyVelox users to register TPC-H connector. Also refactoring the connector register/unregister methods to a separate compilation unit. Differential Revision: D69604556
This pull request was exported from Phabricator. Differential Revision: D69604556 |
✅ Deploy Preview for meta-velox canceled.
|
|
||
void registerHive(const std::string& connectorId) { | ||
connector::registerConnectorFactory( | ||
std::make_shared<connector::hive::HiveConnectorFactory>( |
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.
at least for these two connectors, looks like the only difference we have currently in implementation is the connector factory? If we see this will be a pattern, can we templatize this so we can reuse?
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.
Lgtm, one minor comment about code duplication.
Summary:
Enable PyVelox users to register TPC-H connector. Also refactoring the
connector register/unregister methods to a separate compilation unit.
Differential Revision: D69604556