MCPcopy Create free account
hub / github.com/apache/datafusion / test_window_frame_group_boundaries

Function test_window_frame_group_boundaries

datafusion/expr/src/window_state.rs:855–875  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

853
854 #[test]
855 fn test_window_frame_group_boundaries() -> Result<()> {
856 let window_frame = Arc::new(WindowFrame::new_bounds(
857 WindowFrameUnits::Groups,
858 WindowFrameBound::Preceding(ScalarValue::UInt64(Some(1))),
859 WindowFrameBound::Following(ScalarValue::UInt64(Some(1))),
860 ));
861 assert_group_ranges(
862 &window_frame,
863 vec![
864 (Range { start: 0, end: 2 }, 0),
865 (Range { start: 0, end: 4 }, 1),
866 (Range { start: 1, end: 5 }, 2),
867 (Range { start: 1, end: 5 }, 2),
868 (Range { start: 2, end: 8 }, 3),
869 (Range { start: 4, end: 9 }, 4),
870 (Range { start: 4, end: 9 }, 4),
871 (Range { start: 4, end: 9 }, 4),
872 (Range { start: 5, end: 9 }, 5),
873 ],
874 )
875 }
876
877 #[test]
878 fn test_window_frame_group_boundaries_both_following() -> Result<()> {

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
assert_group_rangesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…