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

Function WithColumnIDAllocator

pkg/expression/exprstatic/exprctx.go:115–120  ·  view source on GitHub ↗

WithColumnIDAllocator sets the column id allocator for `ExprContext`.

(allocator exprctx.PlanColumnIDAllocator)

Source from the content-addressed store, hash-verified

113
114// WithColumnIDAllocator sets the column id allocator for `ExprContext`.
115func WithColumnIDAllocator(allocator exprctx.PlanColumnIDAllocator) ExprCtxOption {
116 intest.AssertNotNil(allocator)
117 return func(s *exprCtxState) {
118 s.columnIDAllocator = allocator
119 }
120}
121
122// WithConnectionID sets the connection id for `ExprContext`.
123func WithConnectionID(id uint64) ExprCtxOption {

Callers 5

TestBuildExpressionFunction · 0.92
getExprCtxOptionsForTestFunction · 0.85
MakeExprContextStaticFunction · 0.85

Calls 1

AssertNotNilFunction · 0.92

Tested by 4

TestBuildExpressionFunction · 0.74
getExprCtxOptionsForTestFunction · 0.68