Documentation ¶
Index ¶
- Variables
- func CheckIndexCanBeKey(idx *model.IndexInfo, columns []*model.ColumnInfo, schema *expression.Schema) (uniqueKey, newKey expression.KeyInfo)
- func CheckMaxOneRowCond(eqColIDs map[int64]struct{}, childSchema *expression.Schema) bool
- func ResolveColumnAndReplace(origin *expression.Column, replace map[string]*expression.Column)
- func ResolveExprAndReplace(origin expression.Expression, replace map[string]*expression.Column)
Constants ¶
This section is empty.
Variables ¶
View Source
var BuildKeyInfoPortal func(lp base.LogicalPlan)
BuildKeyInfoPortal is a hook for other packages to build key info for logical plan.
View Source
var SetPredicatePushDownFlag func(uint64) uint64
SetPredicatePushDownFlag is a hook for other packages to set rule flag.
Functions ¶
func CheckIndexCanBeKey ¶
func CheckIndexCanBeKey(idx *model.IndexInfo, columns []*model.ColumnInfo, schema *expression.Schema) (uniqueKey, newKey expression.KeyInfo)
CheckIndexCanBeKey checks whether an Index can be a Key in schema.
func CheckMaxOneRowCond ¶
func CheckMaxOneRowCond(eqColIDs map[int64]struct{}, childSchema *expression.Schema) bool
CheckMaxOneRowCond check if a condition is the form of (uniqueKey = constant) or (uniqueKey = Correlated column), it returns at most one row.
func ResolveColumnAndReplace ¶
func ResolveColumnAndReplace(origin *expression.Column, replace map[string]*expression.Column)
ResolveColumnAndReplace replaces columns fields of expressions by children logical plans.
func ResolveExprAndReplace ¶
func ResolveExprAndReplace(origin expression.Expression, replace map[string]*expression.Column)
ResolveExprAndReplace replaces columns fields of expressions by children logical plans.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.