From d2034c45523c90db48191eae0d457cb0f63d333b Mon Sep 17 00:00:00 2001 From: discord9 Date: Wed, 28 Oct 2026 11:21:02 +0800 Subject: [PATCH] test(promql): rebuild the gated plan without the deprecated call The workspace is checked with warnings denied, so the deprecated with_new_children wrapper is an error there. replace_children_if_necessary is the replacement that keeps the children's properties when it can. Signed-off-by: discord9 --- tests-integration/src/tests/promql_test.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests-integration/src/tests/promql_test.rs b/tests-integration/src/tests/promql_test.rs index 9bbb8cbf72b..a6b3c6bb4ef 100644 --- a/tests-integration/src/tests/promql_test.rs +++ b/tests-integration/src/tests/promql_test.rs @@ -34,7 +34,7 @@ use datafusion::physical_plan::coop::CooperativeExec; use datafusion::physical_plan::stream::RecordBatchStreamAdapter; use datafusion::physical_plan::{ DisplayAs, DisplayFormatType, ExecutionPlan, ExecutionPlanProperties, PlanProperties, - SendableRecordBatchStream, + SendableRecordBatchStream, replace_children_if_necessary, }; use datatypes::arrow::array::{ Array, Float64Array, Int64Array, StringArray, TimestampMillisecondArray, @@ -1982,7 +1982,7 @@ fn gate_native_fused( return (plan, false); } ( - plan.with_new_children(rewritten) + replace_children_if_necessary(plan, rewritten) .expect("test gate rebuilds plan above fused node"), true, )