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 TestBuilder(query string, vschema plancontext.VSchema, keyspace string) (*engine.Plan, 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 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
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
- concatenate.go
- ddl.go
- delete.go
- delete_with_input.go
- distinct.go
- expression_converter.go
- filter.go
- fk_cascade.go
- fk_verify.go
- insert.go
- join.go
- limit.go
- locktables.go
- logical_plan.go
- memory_sort.go
- merge_sort.go
- migration.go
- operator_transformers.go
- ordered_aggregate.go
- other_read.go
- plan_test_vindex.go
- planner.go
- prepared_statement.go
- primitive_wrapper.go
- projection.go
- rewrite.go
- route.go
- select.go
- semi_join.go
- sequential.go
- set.go
- show.go
- simple_projection.go
- single_sharded_shortcut.go
- sql_calc_found_rows.go
- stream.go
- system_variables.go
- throttler.go
- uncorrelated_subquery.go
- update.go
- upsert.go
- use.go
- vexplain.go
- vindex_func.go
- vindex_op.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.