zxf216 opened a new pull request, #1993:
URL: https://github.com/apache/orc/pull/1993

   ### What changes were proposed in this pull request?
   you can use C++ version code to read encrypted ORC files
   
   
   ### Why are the changes needed?
   The C++ version is not yet able to read encrypted ORC files now
   
   
   ### How was this patch tested?
       orc::RowReaderOptions rowReaderOptions;
       orc::ReaderOptions readerOpts;
       std::shared_ptr<orc::InMemoryKeystore> keyStore = 
std::make_shared<orc::InMemoryKeystore>();
       std::string passKey ="secret123";
       keyStore->addKey("pii", 0, 
orc::EncryptionAlgorithm::AES_CTR_128,passKey);
       readerOpts.setKeyProvider(keyStore);
       printContents("/root/starrocks/encryption.orc",readerOpts, 
rowReaderOptions);
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to