Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Blizzara committed Dec 13, 2024
1 parent af25b26 commit 53d96be
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions datafusion/core/src/datasource/file_format/parquet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2251,33 +2251,6 @@ mod tests {
scan_format(state, &*format, &testdata, file_name, projection, limit).await
}

#[tokio::test]
async fn test_read_parquet() -> Result<()> {
let testdata = crate::test_util::parquet_test_data();
let path = format!("{testdata}/alltypes_tiny_pages.parquet");
let file = File::open(path).await.unwrap();
let options = ArrowReaderOptions::new().with_page_index(true);
let builder =
ParquetRecordBatchStreamBuilder::new_with_options(file, options.clone())
.await
.unwrap()
.metadata()
.clone();
check_page_index_validation(builder.column_index(), builder.offset_index());

let path = format!("{testdata}/alltypes_tiny_pages_plain.parquet");
let file = File::open(path).await.unwrap();

let builder = ParquetRecordBatchStreamBuilder::new_with_options(file, options)
.await
.unwrap()
.metadata()
.clone();
check_page_index_validation(builder.column_index(), builder.offset_index());

Ok(())
}

#[tokio::test]
async fn test_read_empty_parquet() -> Result<()> {
let testdata = crate::test_util::parquet_test_data();
Expand Down

0 comments on commit 53d96be

Please sign in to comment.