package
2.1.0-alpha.20180416+incompatible
Repository: https://github.com/coyle/cockroach.git
Documentation: pkg.go.dev
# Functions
BinaryAllowsNullArgs returns true if the given binary operator allows null arguments, and cannot therefore be folded away to null.
BinaryOverloadExists returns true if the given binary operator exists with the given arguments.
ExtractConstDatum returns the Datum that represents the value of an operator having the ConstValue tag.
InferBinaryType infers the return type of a binary operator, given the type of its inputs.
InferType derives the type of the given scalar expression.
InferUnaryType infers the return type of a unary operator, given the type of its input.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MakeBestExpr constructs a new candidate BestExpr for the given expression, with respect to the given physical properties.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MakeExprView creates a new ExprView instance that references the given expression, which is the lowest cost expression in its group for a particular set of physical properties.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MakeNormExprID returns the id of the normalized expression for the given group.
MakeNormExprView constructs an ExprView that traverses the normalized logical expression tree, rather than the lowest cost physical tree.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MatchesTupleOfConstants returns true if the expression is a TupleOp with ConstValue children.
New constructs a new empty memo instance.
# Constants
ExprFmtHideAll shows only the most basic properties of the expression.
ExprFmtHideConstraints does not show inferred constraints in the output.
ExprFmtHideCost does not show expression cost in the output.
ExprFmtHideKeys does not show keys in the output.
ExprFmtHideOuterCols does not show outer columns in the output.
ExprFmtHideStats does not show statistics in the output.
ExprFmtShowAll shows all properties of the expression.
MinPhysPropsID is the id of the well-known set of physical properties that requires nothing of an operator.
# Variables
EmptyList is a list with zero elements.
MaxCost is the maximum possible estimated cost.
UnknownBestExprID is the uninitialized BestExprID.
# Structs
BestExpr references the lowest cost expression in a memo group for a given set of required physical properties.
BestExprID uniquely identifies a BestExpr stored in the memo by pairing the ID of its group with the ordinal position of the BestExpr within that group.
Expr is a memoized representation of an expression.
ExprID uniquely identifies an expression stored in the memo by pairing the ID of its group with the ordinal position of the expression within that group.
ExprView provides a view of a single tree in the memo's forest of query plan trees (see comment in memo.go for more details about the memo forest).
FuncOpDef defines the value of the Def private field of the Function operator.
ListID identifies a variable-sized list used by a memo expression and stored by the memo.
LogicalProps describe the content and characteristics of data returned by all expression variants within a memo group.
Memo is a data structure for efficiently storing a forest of query plans.
PhysicalProps are interesting characteristics of an expression that impact its layout, presentation, or location, but not its logical content.
RelationalProps are the subset of logical properties that are computed for relational expressions that return rows and columns rather than scalar values.
ScalarProps are the subset of logical properties that are computed for scalar expressions that return primitive-valued types.
ScanOpDef defines the value of the Def private field of the Scan operator.
SetOpColMap defines the value of the ColMap private field of the set operators: Union, Intersect, Except, UnionAll, IntersectAll and ExceptAll.
Statistics is a collection of measurements and statistics that is used by the coster to estimate the cost of expressions.
# Type aliases
AggregationsExpr is a set of aggregate expressions that will become output columns for a containing GroupBy operator.
AndExpr is the boolean conjunction operator that evalutes to true if all of its conditions evaluate to true.
No description provided by the author
No description provided by the author
AnyExpr is a special operator that does not exist in SQL.
ArrayExpr is an ARRAY literal of the form ARRAY[<expr1>, <expr2>, ..., <exprN>].
No description provided by the author
No description provided by the author
No description provided by the author
CaseExpr is a CASE statement of the form: CASE [ <Input> ] WHEN <condval1> THEN <expr1> [ WHEN <condval2> THEN <expr2> ] ..
No description provided by the author
No description provided by the author
No description provided by the author
ConstExpr is a typed scalar constant value.
No description provided by the author
Cost is the best-effort approximation of the actual cost of executing a particular expression tree.
No description provided by the author
No description provided by the author
ExceptAllExpr is an operator used to perform a set difference between the Left and Right input relations.
ExceptExpr is an operator used to perform a set difference between the Left and Right input relations.
No description provided by the author
ExprFmtFlags controls which properties of the expression are shown in formatted output.
ExprOrdinal is the ordinal position of an expression within its memo group.
FalseExpr is the boolean false value that is equivalent to the tree.DBoolFalse datum value.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FiltersExpr is a boolean And operator that only appears as the Filters child of a Select operator, or the On child of a Join operator.
Fingerprint uniquely identifies a memo expression by combining its operator type plus its operator fields.
No description provided by the author
No description provided by the author
No description provided by the author
FunctionExpr invokes a builtin SQL function like CONCAT or NOW, passing the given arguments.
No description provided by the author
GroupByExpr is an operator that is used for performing aggregations (for queries with aggregate functions, HAVING clauses and/or group by expressions).
GroupID identifies a memo group.
No description provided by the author
No description provided by the author
No description provided by the author
InnerJoinApplyExpr has the same join semantics as InnerJoin.
InnerJoinExpr creates a result set that combines columns from its left and right inputs, based upon its "on" join predicate.
IntersectAllExpr is an operator used to perform an intersection between the Left and Right input relations.
IntersectExpr is an operator used to perform an intersection between the Left and Right input relations.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LimitExpr returns a limited subset of the results in the input relation.
No description provided by the author
No description provided by the author
Max1RowExpr is an operator which enforces that its input must return at most one row.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NotExpr is the boolean negation operator that evaluates to true if its input evalutes to false.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NullExpr is the constant SQL null value that has "unknown value" semantics.
OffsetExpr filters out the first Offset rows of the input relation; used in conjunction with Limit.
Ordering defines the order of rows provided or required by an operator.
OrExpr is the boolean disjunction operator that evalutes to true if any of its conditions evaluate to true.
PhysicalPropsID identifies a set of physical properties that has been interned by a memo instance.
No description provided by the author
No description provided by the author
No description provided by the author
Presentation specifies the naming, membership (including duplicates), and order of result columns that are required of or provided by an operator.
PrivateID identifies custom private data used by a memo expression and stored by the memo.
ProjectExpr modifies the set of columns returned by the input result set.
ProjectionsExpr is a set of typed scalar expressions that will become output columns for a containing Project operator.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ScanExpr returns a result set containing every row in the specified table, by scanning one of the table's indexes according to its ordering.
SelectExpr filters rows from its input result set, based on the boolean filter predicate expression.
No description provided by the author
No description provided by the author
No description provided by the author
SubqueryExpr is a subquery in a single-row context such as `SELECT 1 = (SELECT 1)` or `SELECT (1, 'a') = (SELECT 1, 'a')`.
TrueExpr is the boolean true value that is equivalent to the tree.DBoolTrue datum value.
No description provided by the author
No description provided by the author
No description provided by the author
UnionAllExpr is an operator used to combine the Left and Right input relations into a single set containing rows from both inputs.
UnionExpr is an operator used to combine the Left and Right input relations into a single set containing rows from both inputs.
UnsupportedExprExpr is used for interfacing with the old planner code.
ValuesExpr returns a manufactured result set containing a constant number of rows.
VariableExpr is the typed scalar value of a column in the query.
WhenExpr represents a single WHEN ..