Skip to content

Commit 9988555

Browse files
committed
Make new field optional in integration test
1 parent f98baaa commit 9988555

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

crates/integration_tests/tests/add_fields_test.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,13 @@ async fn test_add_field() {
139139
assert_eq!(batches.len(), 1);
140140
assert_eq!(batches[0], batch);
141141

142-
// Add a new field to the table
142+
// Add a new optional field to the table
143143
let tx = Transaction::new(&table);
144144
let add_action = tx.add_fields(vec![iceberg::spec::NestedFieldRef::new(
145-
iceberg::spec::NestedField::new(
145+
iceberg::spec::NestedField::optional(
146146
4,
147-
"a".to_string(),
147+
"a",
148148
iceberg::spec::Type::Primitive(iceberg::spec::PrimitiveType::Int),
149-
true,
150149
),
151150
)]);
152151
let tx = add_action.apply(tx).unwrap();

0 commit comments

Comments
 (0)