Documentation ¶
Index ¶
- Constants
- func BuildFromStmt(ctx context.Context, query string, stmt sqlparser.Statement, ...) (*engine.Plan, error)
- func GetShardRoute(vschema plancontext.VSchema, keyspace, shard string) (*vindexes.Keyspace, error)
- func SupplyProjection(eVindexFunc *engine.VindexFunc, expr *sqlparser.AliasedExpr, reuse bool) error
- func TestBuilder(query string, vschema plancontext.VSchema, keyspace string) (*engine.Plan, error)
- func WireupRoute(ctx *plancontext.PlanningContext, eroute *engine.Route, ...) (engine.Primitive, error)
- type UnsupportedSupplyWeightString
Constants ¶
View Source
const ( // Gen4 uses the default Gen4 planner, which is the greedy planner Gen4 = querypb.ExecuteOptions_Gen4 // Gen4GreedyOnly uses only the faster greedy planner Gen4GreedyOnly = querypb.ExecuteOptions_Gen4Greedy // Gen4Left2Right joins table in the order they are listed in the FROM-clause Gen4Left2Right = querypb.ExecuteOptions_Gen4Left2Right )
View Source
const ( ViewDifferentKeyspace string = "Select query does not belong to the same keyspace as the view statement" ViewComplex string = "Complex select queries are not supported in create or alter view statements" DifferentDestinations string = "Tables or Views specified in the query do not belong to the same destination" )
Error messages for CreateView queries
Variables ¶
This section is empty.
Functions ¶
func BuildFromStmt ¶
func BuildFromStmt(ctx context.Context, query string, stmt sqlparser.Statement, reservedVars *sqlparser.ReservedVars, vschema plancontext.VSchema, bindVarNeeds *sqlparser.BindVarNeeds, enableOnlineDDL, enableDirectDDL bool) (*engine.Plan, error)
BuildFromStmt builds a plan based on the AST provided.
func GetShardRoute ¶ added in v0.15.0
func SupplyProjection ¶ added in v0.20.0
func SupplyProjection(eVindexFunc *engine.VindexFunc, expr *sqlparser.AliasedExpr, reuse bool) error
SupplyProjection pushes the given aliased expression into the fields and cols slices of the vindexFunc engine primitive. The method returns the offset of the new expression in the columns list.
func TestBuilder ¶ added in v0.9.0
TestBuilder builds a plan for a query based on the specified vschema. This method is only used from tests
func WireupRoute ¶ added in v0.20.0
func WireupRoute(ctx *plancontext.PlanningContext, eroute *engine.Route, sel sqlparser.SelectStatement) (engine.Primitive, error)
WireupRoute returns an engine primitive for the given route.
Types ¶
type UnsupportedSupplyWeightString ¶ added in v0.10.0
type UnsupportedSupplyWeightString struct {
Type string
}
UnsupportedSupplyWeightString represents the error where the supplying a weight string is not supported
func (UnsupportedSupplyWeightString) Error ¶ added in v0.10.0
func (err UnsupportedSupplyWeightString) Error() string
Error function implements the error interface
Source Files ¶
- builder.go
- bypass.go
- call_proc.go
- ddl.go
- delete.go
- expression_converter.go
- insert.go
- locktables.go
- migration.go
- operator_transformers.go
- other_read.go
- plan_test_vindex.go
- planner.go
- prepared_statement.go
- rewrite.go
- route.go
- select.go
- set.go
- show.go
- single_sharded_shortcut.go
- stream.go
- system_variables.go
- throttler.go
- update.go
- use.go
- vexplain.go
- vindex_func.go
- vstream.go
Directories ¶
Path | Synopsis |
---|---|
Package operators contains the operators used to plan queries.
|
Package operators contains the operators used to plan queries. |
Click to show internal directories.
Click to hide internal directories.