Skip to content

Commit

Permalink
Rever test schema with default value
Browse files Browse the repository at this point in the history
  • Loading branch information
RustedBones committed Dec 14, 2023
1 parent 6f39bf7 commit 1b12a9d
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,14 @@ public class ParquetAvroFileOperationsTest {
SchemaBuilder.record("User")
.namespace("org.apache.beam.sdk.extensions.smb.avro")
.fields()
.requiredString("name")
.requiredInt("age")
.name("name")
.type()
.stringType()
.stringDefault("")
.name("age")
.type()
.intType()
.intDefault(0)
.endRecord();

private static final List<GenericRecord> USER_RECORDS =
Expand Down

0 comments on commit 1b12a9d

Please sign in to comment.