Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ZENOTME committed Mar 4, 2024
1 parent 5fdfa89 commit 4cccb15
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions crates/iceberg/src/writer/file_writer/parquet_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ mod tests {
async fn test_parquet_writer_with_complex_schema() -> Result<()> {
let temp_dir = TempDir::new().unwrap();
let file_io = FileIOBuilder::new_fs_io().build().unwrap();
let loccation_gen =
let location_gen =
MockLocationGenerator::new(temp_dir.path().to_str().unwrap().to_string());
let file_name_gen =
DefaultFileNameGenerator::new("test".to_string(), None, DataFileFormat::Parquet);
Expand All @@ -410,7 +410,11 @@ mod tests {
"sub_col",
arrow_schema::DataType::Int64,
true,
)]
)
.with_metadata(HashMap::from([(
PARQUET_FIELD_ID_META_KEY.to_string(),
"-1".to_string(),
)]))]
.into(),
),
true,
Expand All @@ -424,11 +428,13 @@ mod tests {
),
arrow_schema::Field::new(
"col3",
arrow_schema::DataType::List(Arc::new(arrow_schema::Field::new(
"item",
arrow_schema::DataType::Int64,
true,
))),
arrow_schema::DataType::List(Arc::new(
arrow_schema::Field::new("item", arrow_schema::DataType::Int64, true)
.with_metadata(HashMap::from([(
PARQUET_FIELD_ID_META_KEY.to_string(),
"-1".to_string(),
)])),
)),
true,
)
.with_metadata(HashMap::from([(
Expand All @@ -445,11 +451,19 @@ mod tests {
"sub_sub_col",
arrow_schema::DataType::Int64,
true,
)]
)
.with_metadata(HashMap::from([(
PARQUET_FIELD_ID_META_KEY.to_string(),
"-1".to_string(),
)]))]
.into(),
),
true,
)]
)
.with_metadata(HashMap::from([(
PARQUET_FIELD_ID_META_KEY.to_string(),
"-1".to_string(),
)]))]
.into(),
),
true,
Expand Down Expand Up @@ -519,7 +533,7 @@ mod tests {
WriterProperties::builder().build(),
to_write.schema(),
file_io.clone(),
loccation_gen,
location_gen,
file_name_gen,
)
.build()
Expand Down

0 comments on commit 4cccb15

Please sign in to comment.