Skip to content

Commit

Permalink
hosted search event metadata is valid field (#409)
Browse files Browse the repository at this point in the history
Co-authored-by: Jesse Jia <[email protected]>
  • Loading branch information
zhixuanjia and Jesse Jia authored Aug 29, 2024
1 parent 5cbf8fc commit 98fa3ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public static List<RecordDataSchema.Field> fieldsUsingInvalidType(@Nonnull Recor
@Nonnull Set<DataSchema.Type> allowedTypes) {
return schema.getFields()
.stream()
.filter(field -> !allowedTypes.contains(getFieldOrArrayItemType(field)))
.filter(field -> !allowedTypes.contains(getFieldOrArrayItemType(field)) && !field.getName().equals("hostedSearchEventMetadata"))
.collect(Collectors.toList());
}

Expand Down

0 comments on commit 98fa3ef

Please sign in to comment.