Skip to content

Commit

Permalink
fix nested field
Browse files Browse the repository at this point in the history
  • Loading branch information
JanKaul committed Aug 4, 2023
1 parent bb379bf commit 8292d42
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/iceberg/src/spec/values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ mod timestamptz {
#[cfg(test)]
mod tests {

use crate::spec::datatypes::{StructField, StructType};
use crate::spec::datatypes::{NestedField, StructType};

use super::*;

Expand Down Expand Up @@ -719,20 +719,20 @@ mod tests {
),
])),
&Type::Struct(StructType::new(vec![
StructField {
NestedField {
id: 1,
name: "id".to_string(),
required: true,
field_type: Type::Primitive(PrimitiveType::Int),
field_type: Box::new(Type::Primitive(PrimitiveType::Int)),
doc: None,
initial_default: None,
write_default: None,
},
StructField {
NestedField {
id: 2,
name: "name".to_string(),
required: false,
field_type: Type::Primitive(PrimitiveType::String),
field_type: Box::new(Type::Primitive(PrimitiveType::String)),
doc: None,
initial_default: None,
write_default: None,
Expand Down

0 comments on commit 8292d42

Please sign in to comment.