From 44959e19487385e81b9b6ea8bd7f5bed7d77e272 Mon Sep 17 00:00:00 2001 From: "Jorge C. Leitao" Date: Thu, 13 Jan 2022 16:07:25 +0000 Subject: [PATCH] Removed test --- src/io/parquet/read/schema/metadata.rs | 51 -------------------------- 1 file changed, 51 deletions(-) diff --git a/src/io/parquet/read/schema/metadata.rs b/src/io/parquet/read/schema/metadata.rs index 398e812764f..9683182def7 100644 --- a/src/io/parquet/read/schema/metadata.rs +++ b/src/io/parquet/read/schema/metadata.rs @@ -83,54 +83,3 @@ fn parse_key_value_metadata( None => None, } } - -#[cfg(test)] -mod tests { - use std::fs::File; - - use parquet2::read::read_metadata; - - use crate::datatypes::Schema; - use crate::error::Result; - - use super::read_schema_from_metadata; - - fn read_schema(path: &str) -> Result> { - let mut file = File::open(path).unwrap(); - - let metadata = read_metadata(&mut file)?; - let keys = metadata.key_value_metadata(); - read_schema_from_metadata(keys) - } - - #[test] - fn test_basic() -> Result<()> { - if std::env::var("ARROW2_IGNORE_PARQUET").is_ok() { - return Ok(()); - } - let schema = read_schema("fixtures/pyarrow3/v1/basic_nullable_10.parquet")?; - let names = schema - .unwrap() - .fields - .iter() - .map(|x| x.name.clone()) - .collect::>(); - assert_eq!( - names, - vec![ - "int64", - "float64", - "string", - "bool", - "date", - "uint32", - "string_large", - "decimal_9", - "decimal_18", - "decimal_26", - "timestamp_us" - ] - ); - Ok(()) - } -}