fenfeng9 commented on code in PR #49334:
URL: https://github.com/apache/arrow/pull/49334#discussion_r2965345299


##########
cpp/src/parquet/bloom_filter_reader.cc:
##########
@@ -76,10 +83,39 @@ std::unique_ptr<BloomFilter> 
RowGroupBloomFilterReaderImpl::GetColumnBloomFilter
           "bloom filter length + bloom filter offset greater than file size");
     }
   }
-  auto stream = ::arrow::io::RandomAccessFile::GetStream(
-      input_, *bloom_filter_offset, file_size - *bloom_filter_offset);
+  std::unique_ptr<ColumnCryptoMetaData> crypto_metadata = 
col_chunk->crypto_metadata();
+  std::unique_ptr<Decryptor> header_decryptor =
+      
InternalFileDecryptor::GetColumnMetaDecryptorFactory(file_decryptor_.get(),
+                                                           
crypto_metadata.get())();
+  std::unique_ptr<Decryptor> bitset_decryptor =
+      
InternalFileDecryptor::GetColumnDataDecryptorFactory(file_decryptor_.get(),

Review Comment:
   Thanks for catching this.
   Updated so both the bloom filter header and bitset use the metadata 
decryptor. I still kept two decryptor variables.



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