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 <discord9@163.com>
This commit is contained in:
discord9
2026-10-28 12:30:46 +08:00
parent 9abcff54d2
commit d2034c4552
+2 -2
View File
@@ -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,
)