Skip to content

Commit 3d19097

Browse files
authored
Make interval fields non-required (#298)
Signed-off-by: Marco Slot <marco.slot@snowflake.com>
1 parent 4a99db5 commit 3d19097

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pg_lake_iceberg/src/iceberg/iceberg_field.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ PostgresTypeToIcebergField(PGType pgType, bool forAddColumn, int *subFieldIndex)
250250
elem->id = *subFieldIndex + 1;
251251
*subFieldIndex = elem->id;
252252
elem->name = pstrdup(names[i]);
253-
elem->required = true;
253+
/* Snowflake requires struct fields to be optional (nullable) */
254+
elem->required = false;
254255

255256
Field *subField = palloc0(sizeof(Field));
256257

0 commit comments

Comments
 (0)