Skip to content

Commit

Permalink
Removed stray comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
nglime committed Nov 25, 2024
1 parent 0ed979d commit d9d08cd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arrow-array/src/record_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1349,10 +1349,10 @@ mod tests {
(c.clone(), Arc::new(c_field.clone()) as ArrayRef),
]));

/*let exclamation_field = Arc::new(StructArray::from(vec![
let exclamation_field = Arc::new(StructArray::from(vec![
(one.clone(), Arc::new(one_field.clone()) as ArrayRef),
(two.clone(), Arc::new(two_field.clone()) as ArrayRef),
]));*/
]));

let schema = Schema::new(vec![exclamation.clone()]);
/*let normalized = RecordBatch::try_new(Arc::new(schema), vec![exclamation_field])
Expand Down Expand Up @@ -1509,9 +1509,7 @@ mod tests {
let metadata = vec![("foo".to_string(), "bar".to_string())]
.into_iter()
.collect();
println!("Metadata: {:?}", metadata);
let metadata_schema = nullable_schema.as_ref().clone().with_metadata(metadata);
println!("Metadata schema: {:?}", metadata_schema);
let batch = batch.with_schema(Arc::new(metadata_schema)).unwrap();

// Cannot remove metadata
Expand Down

0 comments on commit d9d08cd

Please sign in to comment.