Skip to content

Commit

Permalink
(bugfix) Set metadata in AvroSortedBucketIO (#5184)
Browse files Browse the repository at this point in the history
  • Loading branch information
clairemcginty committed Jan 18, 2024
1 parent c2886ee commit bc4ecfb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,9 @@ public Write<K1, K2, T> withTempDirectory(String tempDirectory) {
@SuppressWarnings("unchecked")
@Override
public FileOperations<T> getFileOperations() {
return AvroFileOperations.of(getDatumFactory(), getSchema()).withCodec(getCodec());
return AvroFileOperations.of(getDatumFactory(), getSchema())
.withCodec(getCodec())
.withMetadata(getMetadata());
}

@SuppressWarnings("unchecked")
Expand Down

0 comments on commit bc4ecfb

Please sign in to comment.