Skip to content

Commit ec4413e

Browse files
authored
Re-enable page index for encrypted Parquet (#17426)
1 parent b4a8b5a commit ec4413e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

datafusion/datasource-parquet/src/opener.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,18 +150,13 @@ impl FileOpener for ParquetOpener {
150150
let expr_adapter_factory = self.expr_adapter_factory.clone();
151151
let mut predicate_file_schema = Arc::clone(&self.logical_file_schema);
152152

153-
let mut enable_page_index = self.enable_page_index;
153+
let enable_page_index = self.enable_page_index;
154154
let encryption_context = self.get_encryption_context();
155155

156156
Ok(Box::pin(async move {
157157
let file_decryption_properties = encryption_context
158158
.get_file_decryption_properties(&file_location)
159159
.await?;
160-
// For now, page index does not work with encrypted files. See:
161-
// https://github.com/apache/arrow-rs/issues/7629
162-
if file_decryption_properties.is_some() {
163-
enable_page_index = false;
164-
}
165160

166161
// Prune this file using the file level statistics and partition values.
167162
// Since dynamic filters may have been updated since planning it is possible that we are able

0 commit comments

Comments
 (0)