pub struct RetainedCompanion<'a> {
pub table: EntityRef<'a>,
pub slice_column: &'a str,
}Expand description
A second table the retention window governs, handed to the retain renderer alongside the partitioned one.
A design can ask a load to set a bad row aside instead of refusing the whole day. Those rows go to a table standing beside the target, holding the row as the load read it and the day it arrived in. That table is not partitioned on any engine — the day it carries is the load’s own column rather than the design’s time dimension — so dropping an old partition never reaches it, and left alone it grows for as long as the warehouse runs.
So it travels here instead. Delete from it by Self::slice_column
against the cutoff the partitions are judged by, in the same statement list
or procedure body, and an operator who runs retention once keeps both
tables inside one window. None means there is no such table and there is
nothing to add.
Fields§
§table: EntityRef<'a>The table itself, addressed the way every other table here is, so it is qualified and quoted by whatever this renderer already uses.
slice_column: &'a strThe column holding the day each row arrived in — compare the cutoff against this one, not against the design’s time dimension, which this table does not carry.