fix: bound phase1 operator windows
CI / lite (pull_request) Successful in 10s

This commit is contained in:
ao gong
2026-08-27 20:29:53 +08:00
parent eca4bd4d65
commit 32e8bfe573
2 changed files with 17 additions and 7 deletions
+7
View File
@@ -1321,3 +1321,10 @@ def test_phase1_dispatch_rejects_unknown_or_unused_arguments():
evaluate_phase1_operator("rank", values, window=2)
with pytest.raises(ValueError, match="secondary"):
evaluate_phase1_operator("rank", values, values)
def test_phase1_dispatch_rejects_window_above_supported_limit():
values = pd.Series([1.0, 2.0, 3.0])
with pytest.raises(ValueError, match="maximum"):
evaluate_phase1_operator("ts_mean", values, window=2**63)