diff --git a/src/common/src/types/interval.rs b/src/common/src/types/interval.rs index a1dd765ce03b..aa3944af5cac 100644 --- a/src/common/src/types/interval.rs +++ b/src/common/src/types/interval.rs @@ -435,6 +435,8 @@ impl IntervalUnit { } } +/// Wrapper so that `Debug for IntervalUnitDisplay` would use the concise format of `Display for +/// IntervalUnit`. #[derive(Clone, Copy)] pub struct IntervalUnitDisplay<'a> { pub core: &'a IntervalUnit, @@ -452,6 +454,8 @@ impl std::fmt::Debug for IntervalUnitDisplay<'_> { } } +/// Loss of information during the process due to `justify`. Only intended for memcomparable +/// encoding. impl Serialize for IntervalUnit { fn serialize(&self, serializer: S) -> std::result::Result where @@ -473,6 +477,7 @@ impl<'de> Deserialize<'de> for IntervalUnit { } } +/// Duplicated logic only used by `HopWindow`. See #8452. #[expect(clippy::from_over_into)] impl Into for IntervalUnit { fn into(self) -> IntervalUnitProto {