We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f98baaa commit 9988555Copy full SHA for 9988555
1 file changed
crates/integration_tests/tests/add_fields_test.rs
@@ -139,14 +139,13 @@ async fn test_add_field() {
139
assert_eq!(batches.len(), 1);
140
assert_eq!(batches[0], batch);
141
142
- // Add a new field to the table
+ // Add a new optional field to the table
143
let tx = Transaction::new(&table);
144
let add_action = tx.add_fields(vec![iceberg::spec::NestedFieldRef::new(
145
- iceberg::spec::NestedField::new(
+ iceberg::spec::NestedField::optional(
146
4,
147
- "a".to_string(),
+ "a",
148
iceberg::spec::Type::Primitive(iceberg::spec::PrimitiveType::Int),
149
- true,
150
),
151
)]);
152
let tx = add_action.apply(tx).unwrap();
0 commit comments