util

package
v1.1.0-beta.0...-04608f4 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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