WithPlanCacheTracker sets the plan cache tracker for `ExprContext`.
(tracker *contextutil.PlanCacheTracker)
| 105 | |
| 106 | // WithPlanCacheTracker sets the plan cache tracker for `ExprContext`. |
| 107 | func WithPlanCacheTracker(tracker *contextutil.PlanCacheTracker) ExprCtxOption { |
| 108 | intest.AssertNotNil(tracker) |
| 109 | return func(s *exprCtxState) { |
| 110 | s.planCacheTracker = tracker |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | // WithColumnIDAllocator sets the column id allocator for `ExprContext`. |
| 115 | func WithColumnIDAllocator(allocator exprctx.PlanColumnIDAllocator) ExprCtxOption { |