MCPcopy
hub / github.com/pingcap/tidb / buildUnionScanExec

Method buildUnionScanExec

pkg/executor/builder.go:1363–1375  ·  view source on GitHub ↗
(v *plannercore.PhysicalUnionScan)

Source from the content-addressed store, hash-verified

1361}
1362
1363func (b *executorBuilder) buildUnionScanExec(v *plannercore.PhysicalUnionScan) exec.Executor {
1364 oriEncounterUnionScan := b.encounterUnionScan
1365 b.encounterUnionScan = true
1366 defer func() {
1367 b.encounterUnionScan = oriEncounterUnionScan
1368 }()
1369 reader := b.build(v.Children()[0])
1370 if b.err != nil {
1371 return nil
1372 }
1373
1374 return b.buildUnionScanFromReader(reader, v)
1375}
1376
1377func collectColIdxFromByItems(byItems []*plannerutil.ByItems, cols []*model.ColumnInfo) ([]int, error) {
1378 var colIdxs []int

Callers 1

buildMethod · 0.95

Calls 3

buildMethod · 0.95
ChildrenMethod · 0.65

Tested by

no test coverage detected