Skip to content

Commit

Permalink
default to string to test
Browse files Browse the repository at this point in the history
  • Loading branch information
rwilson-r7 committed Nov 20, 2024
1 parent 3417141 commit c15aa9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ private Type doInferIcebergType(Object value) {
} else if (value instanceof List) {
List<?> list = (List<?>) value;
if (list.isEmpty()) {
return null;
return ListType.ofOptional(nextId(), StringType.get());
}
Optional<Type> elementType = inferIcebergType(list.get(0));
return elementType.map(type -> ListType.ofOptional(nextId(), type)).orElse(null);
Expand Down

0 comments on commit c15aa9d

Please sign in to comment.