ctl

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const ZeroDate = "0001-01-01"

Variables

This section is empty.

Functions

func Handler

func Handler(vs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

Handler used to handle mo_debug SQL function. Format of the function: mo_debug('service name', 'command', 'command parameter') service name: [CN|DN|LOG|HAKEEPER] command: command in supportedCmds command parameter: the parameter of the command

func MOLogDate added in v0.7.0

func MOLogDate(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

MOLogDate parse 'YYYY/MM/DD' date from input string. return '0001-01-01' if input string not container 'YYYY/MM/DD' substr, until DateParse Function support return NULL for invalid date string.

func MoTableColMax added in v0.7.0

func MoTableColMax(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

MoTableColMax return the max value of the column

func MoTableColMin added in v0.7.0

func MoTableColMin(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

MoTableColMax return the max value of the column

func MoTableRows added in v0.7.0

func MoTableRows(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

MoTableRows returns an estimated row number of a table.

func MoTableSize added in v0.7.0

func MoTableSize(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

MoTableSize returns an estimated size of a table.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL