-
Notifications
You must be signed in to change notification settings - Fork 5.5k
[native] Enable the use of the cuDF parquet reader #25899
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,10 @@ | |
| #include "presto_cpp/main/connectors/arrow_flight/ArrowPrestoToVeloxConnector.h" | ||
| #endif | ||
|
|
||
| #ifdef PRESTO_ENABLE_CUDF | ||
| #include "velox/experimental/cudf/connectors/hive/CudfHiveConnector.h" | ||
| #endif | ||
|
|
||
| #include "velox/connectors/hive/HiveConnector.h" | ||
| #include "velox/connectors/tpch/TpchConnector.h" | ||
|
|
||
|
|
@@ -31,6 +35,16 @@ constexpr char const* kIcebergConnectorName = "iceberg"; | |
| void registerConnectorFactories() { | ||
| // These checks for connector factories can be removed after we remove the | ||
| // registrations from the Velox library. | ||
| #ifdef PRESTO_ENABLE_CUDF | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can likely push this |
||
| if (!velox::connector::hasConnectorFactory( | ||
| velox::connector::hive::HiveConnectorFactory::kHiveConnectorName)) { | ||
| velox::connector::registerConnectorFactory( | ||
| std::make_shared<facebook::velox::cudf_velox::connector::hive::CudfHiveConnectorFactory>()); | ||
| velox::connector::registerConnectorFactory( | ||
| std::make_shared<facebook::velox::cudf_velox::connector::hive::CudfHiveConnectorFactory>( | ||
| kHiveHadoop2ConnectorName)); | ||
| } | ||
| #else | ||
| if (!velox::connector::hasConnectorFactory( | ||
| velox::connector::hive::HiveConnectorFactory::kHiveConnectorName)) { | ||
| velox::connector::registerConnectorFactory( | ||
|
|
@@ -39,6 +53,8 @@ void registerConnectorFactories() { | |
| std::make_shared<velox::connector::hive::HiveConnectorFactory>( | ||
| kHiveHadoop2ConnectorName)); | ||
| } | ||
| #endif | ||
|
|
||
| if (!velox::connector::hasConnectorFactory( | ||
| velox::connector::tpch::TpchConnectorFactory::kTpchConnectorName)) { | ||
| velox::connector::registerConnectorFactory( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,7 @@ target_link_libraries(presto_velox_expr_conversion velox_presto_types | |
|
|
||
| add_library(presto_types PrestoToVeloxQueryPlan.cpp VeloxPlanValidator.cpp | ||
| PrestoToVeloxSplit.cpp) | ||
| target_compile_definitions(presto_types PUBLIC VELOX_ENABLE_BACKWARD_COMPATIBILITY) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can this be removed? |
||
| target_link_libraries( | ||
| presto_types | ||
| presto_velox_expr_conversion | ||
|
|
||
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 required for
cudf::cudfto be explicit here? Should we be adding it tovelox_cudf_hive_connectorinstead?