package
0.0.0-20241212002435-a4aaf8ca5232
Repository: https://github.com/chrislusf/gleam.git
Documentation: pkg.go.dev

# Functions

BuiltinValuesFactory generates values builtin function.
CastFuncFactory produces builtin function according to field types.
Column2Exprs will transfer column slice to expression slice.
ColumnSubstitute substitutes the columns in filter to expressions in select fields.
ComposeCNFCondition composes CNF items into a balance deep CNF tree, which benefits a lot for pb decoder/encoder.
ComposeDNFCondition composes DNF items into a balance deep DNF tree.
EvalBool evaluates expression to a boolean value.
EvaluateExprWithNull sets columns in schema as null and calculate the final result of the scalar function.
ExtractColumns extracts all columns from an expression.
FoldConstant does constant folding optimization on an expression.
GetTimeValue gets the time value with type tp.
IsCurrentTimeExpr returns whether e is CurrentTimeExpr.
MergeSchema will merge two schema into one schema.
NewAggFunction creates a new AggregationFunction.
NewCastFunc creates a new cast function.
NewFunction creates a new scalar function or constant.
NewSchema returns a schema made by its parameter.
NewValuesFunc creates a new values function.
PropagateConstant propagate constant values of equality predicates and inequality predicates in a condition.
ScalarFuncs2Exprs converts []*ScalarFunction to []Expression.
SplitCNFItems splits CNF items.
SplitDNFItems splits DNF items.
TableInfo2Schema converts table info to schema.

# Constants

CompleteMode function accepts origin data.
FinalMode function accepts partial data.

# Variables

CurrentTimestamp is the keyword getting default value for datetime and timestamp type.
DynamicFuncs are those functions that use input parameter ctx or return an uncertain result would not be constant folded the value 0 means nothing.
EvalAstExpr evaluates ast expression directly.
MaxPropagateColsCnt means the max number of columns that can participate propagation.
Null stands for null constant.
One stands for a number 1.
Zero stands for a number 0.
ZeroTimestamp shows the zero datetime and timestamp.

# Structs

Assignment represents a set assignment in Update, such as Update t set c1 = hex(12), c2 = c3 where c2 = 1.
Column represents a column.
Constant stands for a constant value.
CorrelatedColumn stands for a column in a correlated sub query.
ScalarFunction is the function that returns a value.
Schema stands for the row schema and unique key information get from input.
VarAssignment represents a variable assignment in Set, such as set global a = 1.

# Interfaces

AggregationFunction stands for aggregate functions.
Expression represents all scalar expression in SQL.

# Type aliases

AggFunctionMode stands for the aggregation function's mode.
BuiltinFunc is the function signature for builtin functions.
KeyInfo stores the columns of one unique key or primary key.