Skip to content

Commit

Permalink
clean up file size writer
Browse files Browse the repository at this point in the history
  • Loading branch information
EC2 Default User committed Dec 3, 2024
1 parent 836a84c commit 0d930d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daft-writers/src/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl TargetFileSizeWriter {
size_bytes: usize,
) -> DaftResult<()> {
self.current_bytes_written += size_bytes;
self.current_writer.write(input.into())?;
self.current_writer.write(input)?;
if self.current_bytes_written >= self.current_in_memory_size_estimate {
self.rotate_writer_and_update_estimates()?;
}
Expand Down

0 comments on commit 0d930d5

Please sign in to comment.