From 7f78d11e9a909dcdbecf68efe887dea2500f8e54 Mon Sep 17 00:00:00 2001 From: Richard Chien Date: Thu, 18 Jan 2024 13:58:27 +0800 Subject: [PATCH] expect deadcode Signed-off-by: Richard Chien --- src/expr/core/src/window_function/state/buffer.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/expr/core/src/window_function/state/buffer.rs b/src/expr/core/src/window_function/state/buffer.rs index 903c2f431df61..99cb3b58f8317 100644 --- a/src/expr/core/src/window_function/state/buffer.rs +++ b/src/expr/core/src/window_function/state/buffer.rs @@ -41,7 +41,12 @@ struct Entry { /// Note: A window frame can be pure preceding, pure following, or acrossing the _current row_. pub(super) struct CurrWindow<'a, K> { pub key: Option<&'a K>, + + // XXX(rc): Maybe will be used in the future, let's keep it for now. + #[cfg_attr(not(test), expect(dead_code))] + /// The preceding half, if any, of the current window is saturated. pub preceding_saturated: bool, + /// The following half, if any, of the current window is saturated. pub following_saturated: bool, }