Skip to content

Commit

Permalink
add test for filter offset index and fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Ted-Jiang committed Jul 1, 2022
1 parent 0992066 commit c0bc361
Show file tree
Hide file tree
Showing 10 changed files with 300 additions and 149 deletions.
2 changes: 1 addition & 1 deletion parquet/src/arrow/array_reader/builder.rs
Expand Up @@ -39,7 +39,7 @@ use crate::data_type::{
Int96Type,
};
use crate::errors::Result;
use crate::file::filer_offset_index::FilterOffsetIndex;
use crate::file::page_index::filer_offset_index::FilterOffsetIndex;
use crate::schema::types::{ColumnDescriptor, ColumnPath, SchemaDescPtr, Type};

/// Create array reader from parquet schema, projection mask, and parquet file reader.
Expand Down
2 changes: 1 addition & 1 deletion parquet/src/arrow/array_reader/mod.rs
Expand Up @@ -44,7 +44,7 @@ mod struct_array;
#[cfg(test)]
mod test_util;

use crate::file::filer_offset_index::FilterOffsetIndex;
use crate::file::page_index::filer_offset_index::FilterOffsetIndex;
pub use builder::build_array_reader;
pub use byte_array::make_byte_array_reader;
pub use byte_array_dictionary::make_byte_array_dictionary_reader;
Expand Down
2 changes: 1 addition & 1 deletion parquet/src/arrow/arrow_reader.rs
Expand Up @@ -30,8 +30,8 @@ use crate::arrow::schema::parquet_to_arrow_schema;
use crate::arrow::schema::parquet_to_arrow_schema_by_columns;
use crate::arrow::ProjectionMask;
use crate::errors::{ParquetError, Result};
use crate::file::filer_offset_index::FilterOffsetIndex;
use crate::file::metadata::{KeyValue, ParquetMetaData};
use crate::file::page_index::filer_offset_index::FilterOffsetIndex;
use crate::file::page_index::range::RowRanges;
use crate::file::reader::{ChunkReader, FileReader, SerializedFileReader};
use crate::schema::types::SchemaDescriptor;
Expand Down
2 changes: 1 addition & 1 deletion parquet/src/arrow/async_reader.rs
Expand Up @@ -100,9 +100,9 @@ use crate::basic::Compression;
use crate::column::page::{Page, PageIterator, PageReader};
use crate::compression::{create_codec, Codec};
use crate::errors::{ParquetError, Result};
use crate::file::filer_offset_index::FilterOffsetIndex;
use crate::file::footer::{decode_footer, decode_metadata};
use crate::file::metadata::ParquetMetaData;
use crate::file::page_index::filer_offset_index::FilterOffsetIndex;
use crate::file::serialized_reader::{decode_page, read_page_header};
use crate::file::FOOTER_SIZE;
use crate::schema::types::{ColumnDescPtr, SchemaDescPtr, SchemaDescriptor};
Expand Down
142 changes: 0 additions & 142 deletions parquet/src/file/filer_offset_index.rs

This file was deleted.

1 change: 0 additions & 1 deletion parquet/src/file/mod.rs
Expand Up @@ -95,7 +95,6 @@
//! println!("{}", row);
//! }
//! ```
pub(crate) mod filer_offset_index;
pub mod footer;
pub mod metadata;
pub mod page_encoding_stats;
Expand Down

0 comments on commit c0bc361

Please sign in to comment.