fn build_evaluated_segment(
promql: Arc<str>,
node: &NativeNode,
children: &[LogicalPlan],
source_tags: &[Vec<String>],
source_ids: &[Option<usize>],
per_source: &[(Option<Arc<str>>, String, Vec<String>)],
grid: &Arc<EvalGrid>,
time_index: &str,
root_kind: FieldKind,
output_tags_of: OutputTags,
field_names: FieldNames,
) -> Option<(LogicalPlan, Vec<String>)>