diff --git a/pkg/sql/execinfra/processorsbase.go b/pkg/sql/execinfra/processorsbase.go index 298c0a4a1b68..e36b288ce9d4 100644 --- a/pkg/sql/execinfra/processorsbase.go +++ b/pkg/sql/execinfra/processorsbase.go @@ -972,7 +972,7 @@ func NewLimitedMonitorNoFlowCtx( type LocalProcessor interface { RowSourcedProcessor // InitWithOutput initializes this processor. - InitWithOutput(ctx context.Context, flowCtx *FlowCtx, post *execinfrapb.PostProcessSpec, output RowReceiver) error + InitWithOutput(ctx context.Context, flowCtx *FlowCtx, processorID int32, post *execinfrapb.PostProcessSpec, output RowReceiver) error // SetInput initializes this LocalProcessor with an input RowSource. Not all // LocalProcessors need inputs, but this needs to be called if a // LocalProcessor expects to get its data from another RowSource. diff --git a/pkg/sql/plan_node_to_row_source.go b/pkg/sql/plan_node_to_row_source.go index c0439bd85dec..a57dec02304d 100644 --- a/pkg/sql/plan_node_to_row_source.go +++ b/pkg/sql/plan_node_to_row_source.go @@ -107,6 +107,7 @@ func (p *planNodeToRowSource) MustBeStreaming() bool { func (p *planNodeToRowSource) InitWithOutput( ctx context.Context, flowCtx *execinfra.FlowCtx, + processorID int32, post *execinfrapb.PostProcessSpec, output execinfra.RowReceiver, ) error { @@ -121,7 +122,7 @@ func (p *planNodeToRowSource) InitWithOutput( // newPlanNodeToRowSource, so we can just use the eval context from the // params. p.params.EvalContext(), - 0, /* processorID */ + processorID, output, nil, /* memMonitor */ execinfra.ProcStateOpts{ diff --git a/pkg/sql/rowexec/processors.go b/pkg/sql/rowexec/processors.go index bab96af1de26..013b1e60be03 100644 --- a/pkg/sql/rowexec/processors.go +++ b/pkg/sql/rowexec/processors.go @@ -322,7 +322,7 @@ func NewProcessor( return nil, err } processor := localProcessors[core.LocalPlanNode.RowSourceIdx] - if err := processor.InitWithOutput(ctx, flowCtx, post, outputs[0]); err != nil { + if err := processor.InitWithOutput(ctx, flowCtx, processorID, post, outputs[0]); err != nil { return nil, err } if numInputs == 1 {