Skip to content

Commit 2807919

Browse files
committed
Skip decoding statistics
1 parent 5faa724 commit 2807919

File tree

1 file changed

+6
-0
lines changed
  • parquet/src/file/metadata/thrift

1 file changed

+6
-0
lines changed

parquet/src/file/metadata/thrift/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ fn read_column_metadata<'a>(
457457
11 => {
458458
column.dictionary_page_offset = Some(i64::read_thrift(&mut *prot)?);
459459
}
460+
/*
460461
12 => {
461462
column.statistics =
462463
convert_stats(column_descr, Some(Statistics::read_thrift(&mut *prot)?))?;
@@ -466,12 +467,14 @@ fn read_column_metadata<'a>(
466467
read_thrift_vec::<PageEncodingStats, ThriftSliceInputProtocol>(&mut *prot)?;
467468
column.encoding_stats = Some(val);
468469
}
470+
*/
469471
14 => {
470472
column.bloom_filter_offset = Some(i64::read_thrift(&mut *prot)?);
471473
}
472474
15 => {
473475
column.bloom_filter_length = Some(i32::read_thrift(&mut *prot)?);
474476
}
477+
/*
475478
16 => {
476479
let val = SizeStatistics::read_thrift(&mut *prot)?;
477480
column.unencoded_byte_array_data_bytes = val.unencoded_byte_array_data_bytes;
@@ -484,6 +487,7 @@ fn read_column_metadata<'a>(
484487
let val = GeospatialStatistics::read_thrift(&mut *prot)?;
485488
column.geo_statistics = convert_geo_stats(Some(val));
486489
}
490+
*/
487491
_ => {
488492
prot.skip(field_ident.field_type)?;
489493
}
@@ -537,6 +541,7 @@ fn read_column_chunk<'a>(
537541
3 => {
538542
col_meta_mask = read_column_metadata(&mut *prot, &mut col)?;
539543
}
544+
/**
540545
4 => {
541546
col.offset_index_offset = Some(i64::read_thrift(&mut *prot)?);
542547
}
@@ -549,6 +554,7 @@ fn read_column_chunk<'a>(
549554
7 => {
550555
col.column_index_length = Some(i32::read_thrift(&mut *prot)?);
551556
}
557+
**/
552558
#[cfg(feature = "encryption")]
553559
8 => {
554560
let val = ColumnCryptoMetaData::read_thrift(&mut *prot)?;

0 commit comments

Comments
 (0)