mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-29 14:14:13 +00:00
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:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user