mapleFU commented on code in PR #15182:
URL: https://github.com/apache/arrow/pull/15182#discussion_r1068861869
##########
cpp/src/parquet/column_reader.cc:
##########
@@ -329,17 +329,16 @@ void SerializedPageReader::InitDecryption() {
}
void SerializedPageReader::UpdateDecryption(const std::shared_ptr<Decryptor>&
decryptor,
- int8_t module_type,
- const std::string& page_aad) {
+ int8_t module_type, std::string*
page_aad) {
DCHECK(decryptor != nullptr);
if (crypto_ctx_.start_decrypt_with_dictionary_page) {
std::string aad = encryption::CreateModuleAad(
decryptor->file_aad(), module_type, crypto_ctx_.row_group_ordinal,
crypto_ctx_.column_ordinal, kNonPageOrdinal);
decryptor->UpdateAad(aad);
} else {
- encryption::QuickUpdatePageAad(page_aad, page_ordinal_);
- decryptor->UpdateAad(page_aad);
+ encryption::QuickUpdatePageAad(page_ordinal_, page_aad);
+ decryptor->UpdateAad(*page_aad);
Review Comment:
Was all `const std::string&` changed to `std::string*` because of aad?
@pitrou
--
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]