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

Function WithWindowingUseHighPrecision

pkg/expression/exprstatic/exprctx.go:130–134  ·  view source on GitHub ↗

WithWindowingUseHighPrecision sets the windowing use high precision for `ExprContext`.

(useHighPrecision bool)

Source from the content-addressed store, hash-verified

128
129// WithWindowingUseHighPrecision sets the windowing use high precision for `ExprContext`.
130func WithWindowingUseHighPrecision(useHighPrecision bool) ExprCtxOption {
131 return func(s *exprCtxState) {
132 s.windowingUseHighPrecision = useHighPrecision
133 }
134}
135
136// WithGroupConcatMaxLen sets the group concat max len for `ExprContext`.
137func WithGroupConcatMaxLen(maxLen uint64) ExprCtxOption {

Callers 4

getExprCtxOptionsForTestFunction · 0.85
MakeExprContextStaticFunction · 0.85

Calls

no outgoing calls

Tested by 2

getExprCtxOptionsForTestFunction · 0.68