Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions analytic_engine/src/table_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,10 +677,14 @@ impl TryFrom<manifest_pb::TableOptions> for TableOptions {
};

let storage_format_hint = opts.storage_format_hint.context(MissingStorageFormatHint)?;
let layered_memtable_opts = opts
.layered_memtable_options
.context(MissingLayeredMemtableOptions)?
.into();
// For compatible with old `table_options`, `layered_memtable_options` is
// allowed to be `None`, and when found `None`, we disable `layered_memtable`.
let layered_memtable_opts = match opts.layered_memtable_options {
Some(v) => v.into(),
None => LayeredMemtableOptions {
mutable_segment_switch_threshold: ReadableSize(0),
},
};

let table_opts = Self {
segment_duration,
Expand Down