Skip to content

Parquet file reading in VeloxIn10Minutes code #10042

Discussion options

You must be logged in to vote

@aditi-pandit is this correct
include

   #include "velox/connectors/hive/HiveConnector.h"
   #include "velox/connectors/hive/HiveConnectorSplit.h"

register hive connector

   VeloxIn10MinDemo() {
     // Register Hive connector.
     auto hiveConnector = connector::getConnectorFactory(
         connector::hive::HiveConnectorFactory::kHiveConnectorName)
         ->newConnector("test-hive", std::make_shared<core::MemConfig>());
     connector::registerConnector(hiveConnector);
   }

   ~VeloxIn10MinDemo() {
     connector::unregisterConnector("test-hive");
   }

Create a function to generate a HiveConnectorSplit for a Parquet file:

   std::shared_ptr<connector::hive::HiveConnectorSplit> cre…

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@aditi-pandit
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Manoj-red-hat
Comment options

Comment options

You must be logged in to vote
1 reply
@aditi-pandit
Comment options

Answer selected by Manoj-red-hat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants