WithColumnIDAllocator sets the column id allocator for `ExprContext`.
(allocator exprctx.PlanColumnIDAllocator)
| 113 | |
| 114 | // WithColumnIDAllocator sets the column id allocator for `ExprContext`. |
| 115 | func 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`. |
| 123 | func WithConnectionID(id uint64) ExprCtxOption { |