Skip to content

Commit 48013c6

Browse files
committed
fix: Add Debug impl for WriteStrategyBuilder and log dep for vortex-io
1 parent c8cc268 commit 48013c6

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

vortex-file/src/strategy.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,24 @@ const ONE_MEG: u64 = 1 << 20;
2828
/// Vortex provides an out-of-the-box file writer that optimizes the layout of chunks on-disk,
2929
/// repartitioning and compressing them to strike a balance between size on-disk,
3030
/// bulk decoding performance, and IOPS required to perform an indexed read.
31-
#[derive(Debug, Clone)]
31+
#[derive(Clone)]
3232
pub struct WriteStrategyBuilder {
3333
compressor: Option<Arc<dyn CompressorPlugin>>,
3434
row_block_size: usize,
3535
field_writers: HashMap<FieldPath, Arc<dyn LayoutStrategy>>,
3636
}
3737

38+
39+
impl std::fmt::Debug for WriteStrategyBuilder {
40+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
41+
f.debug_struct("WriteStrategyBuilder")
42+
.field("compressor", &self.compressor)
43+
.field("row_block_size", &self.row_block_size)
44+
.field("field_writers", &format!("<{} entries>", self.field_writers.len()))
45+
.finish()
46+
}
47+
}
48+
3849
impl Default for WriteStrategyBuilder {
3950
fn default() -> Self {
4051
Self::new()

0 commit comments

Comments
 (0)