We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16c904e commit b168a7dCopy full SHA for b168a7d
src/execution/evaluator.rs
@@ -530,6 +530,17 @@ pub async fn evaluate_source_entry(
530
value::Value::KTable(BTreeMap::from([(src_eval_ctx.key.clone(), scope_value)])),
531
)?;
532
533
+ // Fill other source fields with empty tables
534
+ for import_op in src_eval_ctx.plan.import_ops.iter() {
535
+ let field_idx = import_op.output.field_idx;
536
+ if field_idx != src_eval_ctx.import_op.output.field_idx {
537
+ root_scope_entry.define_field(
538
+ &AnalyzedOpOutput { field_idx },
539
+ &value::Value::KTable(BTreeMap::new()),
540
+ )?;
541
+ }
542
543
+
544
evaluate_op_scope(
545
&src_eval_ctx.plan.op_scope,
546
RefList::Nil.prepend(&root_scope_entry),
0 commit comments