You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- **Refactor RegionFilePathFactory to RegionFilePathProvider:** Updated references and implementations in access_layer.rs, write_cache.rs, and related test files to use the new struct name.
- **Add `max_file_size` support in compaction:** Introduced `max_file_size` option in `PickerOutput`, `SerializedPickerOutput`, and `WriteOptions` in `compactor.rs`, `picker.rs`, `twcs.rs`, and `window.rs`.
- **Enhance Parquet writing logic:** Modified `parquet.rs` and `parquet/writer.rs` to support optional `max_file_size` and added a test case `test_write_multiple_files` to verify writing multiple files based on size constraints.
Copy file name to clipboardexpand all lines: src/mito2/src/compaction/picker.rs
+6
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,8 @@ pub struct PickerOutput {
45
45
puboutputs:Vec<CompactionOutput>,
46
46
pubexpired_ssts:Vec<FileHandle>,
47
47
pubtime_window_size:i64,
48
+
/// Max single output file size in bytes.
49
+
pubmax_file_size:Option<usize>,
48
50
}
49
51
50
52
/// SerializedPickerOutput is a serialized version of PickerOutput by replacing [CompactionOutput] and [FileHandle] with [SerializedCompactionOutput] and [FileMeta].
0 commit comments