Skip to content

Commit

Permalink
fix: disable read parquet page index (#1110)
Browse files Browse the repository at this point in the history
## Rationale
See #1040

## Detailed Changes


## Test Plan
Manually
  • Loading branch information
jiacai2050 authored Jul 27, 2023
1 parent f38564a commit bf7dc78
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions analytic_engine/src/sst/parquet/async_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,17 +363,19 @@ impl<'a> Reader<'a> {
file_path: self.path.to_string(),
})?;

let object_store_reader = parquet_ext::reader::ObjectStoreReader::new(
self.store.clone(),
self.path.clone(),
Arc::new(parquet_meta_data),
);

let parquet_meta_data = parquet_ext::meta_data::meta_with_page_indexes(object_store_reader)
.await
.with_context(|| DecodePageIndexes {
file_path: self.path.to_string(),
})?;
// TODO: reopen following code until https://github.com/CeresDB/ceresdb/issues/1040 is fixed
// let object_store_reader = parquet_ext::reader::ObjectStoreReader::new(
// self.store.clone(),
// self.path.clone(),
// Arc::new(parquet_meta_data),
// );

// let parquet_meta_data =
// parquet_ext::meta_data::meta_with_page_indexes(object_store_reader)
// .await
// .with_context(|| DecodePageIndexes {
// file_path: self.path.to_string(),
// })?;

MetaData::try_new(&parquet_meta_data, ignore_sst_filter)
.box_err()
Expand Down

0 comments on commit bf7dc78

Please sign in to comment.