package
0.0.0-20241018072137-00ebc30e3b87
Repository: https://github.com/secretflow/scql.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
BuildLogicalPlan used to build logical plan from ast.Node.
BuildLogicalPlanWithOptimization used to build logical plan from ast.Node and optimize it on logical level.
No description provided by the author
CheckPrivilege checks the privilege for a user.
DeriveOtherConditions given a LogicalJoin, check the OtherConditions to see if we can derive more conditions for left/right child pushdown.
DrawLogicalPlan draws a logical plan in Graphviz format.
ExprsHasSideEffects checks if any of the expressions has side effects.
No description provided by the author
InPrepare is a PreprocessOpt that indicates preprocess is executing under prepare statement.
InTxnRetry is a PreprocessOpt that indicates preprocess is executing under transaction retry.
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
NewPlanBuilder creates a new PlanBuilder.
No description provided by the author
No description provided by the author
No description provided by the author
Preprocess resolves table names of the node, and checks some statements validation.
ReplaceColumnOfExpr replaces column of expression by another LogicalProjection.
No description provided by the author
ResolveExprAndReplace replaces columns fields of expressions by children logical plans.
RewriteSQLFromLP create sql string from lp with dialect.
RewriteTableRefsAndGetDBType rewrites the tableRefs with local db_dbname.table_name and get db type of table.
ToString explains a Plan, returns description string.

# Constants

AntiLeftOuterSemiJoin means if row a in table A matches some rows in B, output (a, false), otherwise, output (a, true).
AntiSemiJoin means if row a in table A does not match any row in B, then output a.
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
table source includes join, union, table.
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
InnerJoin means inner 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).
RightOuterJoin means right join.
SemiJoin means if row a in table A matches some rows in B, just output a.

# Variables

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
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

# Structs

AggregateFuncExtractor visits Expr tree.
ByItems wraps a "by" item.
No description provided by the author
DataSource represents a tableScan without condition push down.
No description provided by the author
replace ref table name by local table name.
replace ref table name by local table name.
DDL represents a DDL statement plan.
Explain represents a explain plan.
FrameBound is the boundary of a frame.
No description provided by the author
LogicalAggregation represents an aggregate plan.
LogicalApply gets one row from outer executor and gets one row from inner executor according to outer row.
No description provided by the author
LogicalLimit represents offset and limit plan.
No description provided by the author
LogicalSelection represents a where or having predicate.
LogicalShow represents a show plan.
LogicalSort stands for the order by plan.
LogicalTableDual represents a dual table plan.
LogicalTableScan is the logical table scan operator.
LogicalUnionAll represents LogicalUnionAll plan.
LogicalWindow represents a logical window function plan.
No description provided by the author
No description provided by the author
PlanBuilder builds Plan from an ast.Node.
No description provided by the author
No description provided by the author
ShowContents stores the contents for the `SHOW` statement.
Simple represents a simple statement plan which doesn't need any optimization.
WindowFrame represents a window function frame.
WindowFuncExtractor visits Expr tree.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
PreprocessOpt presents optional parameters to `Preprocess` method.