orc
orc copied to clipboard
[C++] read encrypted ORC file
What changes were proposed in this pull request?
you can use C++ version code to read encrypted ORC files ORC file structure:links
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/encryption.orc",readerOpts, rowReaderOptions);
Thanks @zxf216! Let me take a first pass. cc @coderex2522 @ffacs
Thank you for making a PR, @zxf216 .
We have been tracking this via
BTW, could you make the CI happy by fixing all failures? Okay
I converted it to Draft because CIs fails still.
Gentle ping, @zxf216 .