package
0.0.0-20241212002435-a4aaf8ca5232
Repository: https://github.com/chrislusf/gleam.git
Documentation: pkg.go.dev
# Functions
InferType infers result type for ast.ExprNode.
InsertPlan means inserting plan between two plans.
Optimize does optimization and creates a Plan.
RemovePlan means removing a plan.
ToString explains a Plan, returns description string.
Validate checkes whether the node is valid.
# Constants
Agg is the type of Aggregation.
App is the type of Apply.
Error codes.
Optimizer error codes.
Optimizer error codes.
Optimizer error codes.
Optimizer error codes.
Error codes.
Optimizer error codes.
Error codes.
Error codes.
CompleteAgg supposes its input is original results.
Del is the type of Delete.
Dis is the type of Distinct.
Dual is the type of TableDual.
Ext is the type of Exists.
FinalAgg supposes its input is partial results.
Idx is the type of IndexScan.
InnerJoin means inner join.
Ins is the type of Insert.
Jn is the type of Join.
LeftOuterJoin means left join.
LeftOuterSemiJoin means if row a in table A matches some rows in B, output (a, true), otherwise, output (a, false).
Lim is the type of Limit.
Load is the type of LoadData.
Lock is the type of SelectLock.
MOR is the type of MaxOneRow.
Proj is the type of Projection.
RightOuterJoin means right join.
Sel is the type of Selection.
SemiJoin means if row a in table A matches some rows in B, just output a.
Srt is the type of Sort.
St is the type of Set.
StreamedAgg supposes its input is sorted by group by key.
Error codes.
Tbl is the type of TableScan.
Trm is the type of Trim.
Un is the type of Union.
Up is the type of Update.
# Variables
AllowCartesianProduct means whether tidb allows cartesian join without equal conditions.
Error instances.
Optimizer base errors.
Optimizer base errors.
Optimizer base errors.
Optimizer base errors.
Optimizer base errors.
Error instances.
Error instances.
Error instances.
EvalSubquery evaluates incorrelated subqueries once.
JoinConcurrency means the number of goroutines that participate in joining.
Error instances.
# Structs
AggregateFuncExtractor visits Expr tree.
Aggregation represents an aggregate plan.
Apply gets one row from outer executor and gets one row from inner executor according to outer row.
ApplyConditionChecker checks whether all or any output of apply matches a condition.
ByItems wraps a "by" item.
Cache plan is a physical plan which stores the result of its child node.
CheckTable is used for checking table data, built from the 'admin check table' statement.
DataSource represents a tablescan without condition push down.
DDL represents a DDL statement plan.
Deallocate represents deallocate plan.
Delete represents a delete plan.
Execute represents prepare plan.
Exists checks if a query returns result.
Explain represents a explain plan.
IndexRange represents an index range to be scanned.
Insert represents an insert plan.
Join is the logical join plan.
Limit represents offset and limit plan.
LoadData represents a loaddata plan.
MaxOneRow checks if a query returns no more than one row.
PhysicalAggregation is Aggregation's physical plan.
PhysicalApply represents apply plan, only used for subquery.
PhysicalDummyScan is a dummy table that returns nothing.
PhysicalHashJoin represents hash join for inner/ outer join.
PhysicalHashSemiJoin represents hash join for semi join.
PhysicalIndexScan represents an index scan plan.
PhysicalMemTable reads memory table.
PhysicalTableScan represents a table scan plan.
PhysicalUnionScan represents a union scan operator.
Prepare represents prepare plan.
Projection represents a select fields plan.
Selection means a filter.
SelectLock represents a select lock plan.
Set represents a plan for set stmt.
Show represents a show plan.
ShowDDL is for showing DDL information.
Simple represents a simple statement plan which doesn't need any optimization.
Sort stands for the order by plan.
TableDual represents a dual table plan.
TableRange represents a range of row handle.
Trim trims extra columns in src rows.
Union represents Union plan.
Update represents Update plan.
# Interfaces
LogicalPlan is a tree of logical operators.
PhysicalPlan is a tree of the physical operators.
Plan is the description of an execution flow.
# Type aliases
AggregationType stands for the mode of aggregation plan.
JoinType contains CrossJoin, InnerJoin, LeftOuterJoin, RightOuterJoin, FullOuterJoin, SemiJoin.