MCPcopy Create free account
hub / github.com/araddon/qlbridge / NewProjection

Function NewProjection

exec/projection.go:27–32  ·  view source on GitHub ↗

In Process projections are used when mapping multiple sources together and additional columns such as those used in Where, GroupBy etc are used even if they will not be used in Final projection

(ctx *plan.Context, p *plan.Projection)

Source from the content-addressed store, hash-verified

25// and additional columns such as those used in Where, GroupBy etc are used
26// even if they will not be used in Final projection
27func NewProjection(ctx *plan.Context, p *plan.Projection) *Projection {
28 if p.Final {
29 return NewProjectionFinal(ctx, p)
30 }
31 return NewProjectionInProcess(ctx, p)
32}
33
34// In Process projections are used when mapping multiple sources together
35// and additional columns such as those used in Where, GroupBy etc are used

Callers 1

WalkProjectionMethod · 0.70

Calls 2

NewProjectionFinalFunction · 0.70
NewProjectionInProcessFunction · 0.70

Tested by

no test coverage detected