From 7d942aaa3da16b6eff32c340beffe9af2aac4045 Mon Sep 17 00:00:00 2001 From: discord9 Date: Thu, 5 Nov 2026 11:59:17 +0800 Subject: [PATCH] test: pass the engine state to the native operand test The native operand planner now takes the engine state, which decides whether a statement is planned for remote regions. Keep the histogram operand contract test on that signature. Signed-off-by: discord9 --- src/query/src/promql/planner/test.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/query/src/promql/planner/test.rs b/src/query/src/promql/planner/test.rs index e63baf5566c..f4c571289a9 100644 --- a/src/query/src/promql/planner/test.rs +++ b/src/query/src/promql/planner/test.rs @@ -4875,9 +4875,10 @@ async fn native_fused_histogram_quantile_binary_drops_le_from_operand_matching() else { unreachable!() }; + let query_engine_state = build_query_engine_state(); for operand in [&binary.lhs, &binary.rhs] { let (_, context) = planner - .try_plan_native_operand(operand) + .try_plan_native_operand(operand, &query_engine_state) .await .unwrap() .expect("each histogram call is admitted as one native operand");