// Sub-plan execution for CALL { } subqueries (the per-row lateral-join// sinks live in stream.go).
package execimport ()// runSubplan runs a sub-plan over one seed row, combining its UNION// branches exactly like the top-level Execute.func runSubplan( *eval.Ctx, *plan.Plan, []value.Value) [][]value.Value { := runBranchSeeded(, .Branches[0], )for , := range .Union {combineUnion(&, runBranchSeeded(, .Branches[+1], ), ) }return}// runBranchSeeded runs a branch's segment pipeline from one seed row.// Sub-plans are never profiled (a CALL {} stage records a single output// count, matching the Rust engine).func runBranchSeeded( *eval.Ctx, []*plan.Segment, []value.Value) [][]value.Value { := [][]value.Value{}for , := range { = runSegment(, , , nil) }return}
The pages are generated with Goldsv0.8.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.