fn plan_retain_history( scx: &StatementContext<'_>, lcw: Option<Duration>, ) -> Result<CompactionWindow, PlanError>