orc icon indicating copy to clipboard operation
orc copied to clipboard

[C++] read encrypted ORC file

Open zxf216 opened this issue 1 year ago • 4 comments

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);

zxf216 avatar Aug 04 '24 14:08 zxf216

Thanks @zxf216! Let me take a first pass. cc @coderex2522 @ffacs

wgtmac avatar Aug 05 '24 08:08 wgtmac

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

zxf216 avatar Aug 06 '24 03:08 zxf216

I converted it to Draft because CIs fails still.

dongjoon-hyun avatar Aug 11 '24 18:08 dongjoon-hyun

Gentle ping, @zxf216 .

dongjoon-hyun avatar Nov 04 '24 19:11 dongjoon-hyun