MCPcopy Create free account
hub / github.com/pingcap/tidb / ScalarFunction

Struct ScalarFunction

pkg/expression/scalar_function.go:41–49  ·  view source on GitHub ↗

ScalarFunction is the function that returns a value.

Source from the content-addressed store, hash-verified

39
40// ScalarFunction is the function that returns a value.
41type ScalarFunction struct {
42 FuncName model.CIStr
43 // RetType is the type that ScalarFunction returns.
44 // TODO: Implement type inference here, now we use ast's return type temporarily.
45 RetType *types.FieldType `plan-cache-clone:"shallow"`
46 Function builtinFunc
47 hashcode []byte
48 canonicalhashcode []byte
49}
50
51// VecEvalInt evaluates this expression in a vectorized manner.
52func (sf *ScalarFunction) VecEvalInt(ctx EvalContext, input *chunk.Chunk, result *chunk.Column) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected