Documentation
¶
Index ¶
- Variables
- func FormatPlan(plan *Plan) (string, error)
- func FormatPlanProto(plan *proto.Plan) (string, error)
- func NewAnonymousCatalog(schema *bonobo.Schema) *anonymousCatalog
- func NewNamedTable(identifier Identifier, catalog Catalog) *namedTable
- func NewVirtualTable(rec arrow.Record) *virtualTable
- func SetCatalogForPlan(plan *Plan, catalog Catalog)
- func SetCatalogForRelation(plan Relation, catalog Catalog)
- func SetCatalogForTable(table Table, catalog Catalog)
- type Alias
- type Catalog
- type Column
- type ColumnIndex
- type Expr
- type ExprList
- type Function
- type Identifier
- type Literal
- type NamedTable
- type Plan
- type Projection
- type Read
- type Relation
- type Selection
- type Table
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultFunctionRepository = substrait.NewFunctionRepository()
View Source
var (
ErrUnboundTable = errors.New("engine: attempted to determine schema of table that has not been bound to a catalog yet")
)
Functions ¶
func FormatPlan ¶
func NewAnonymousCatalog ¶
func NewNamedTable ¶
func NewNamedTable(identifier Identifier, catalog Catalog) *namedTable
func NewVirtualTable ¶
func SetCatalogForPlan ¶
func SetCatalogForRelation ¶
func SetCatalogForTable ¶
Types ¶
type Alias ¶
type Alias struct {
// contains filtered or unexported fields
}
func NewAliasExpr ¶
func (*Alias) ToProto ¶
func (expr *Alias) ToProto(input Relation, extensions *substrait.ExtensionRegistry) (*proto.Expression, error)
ToProto implements Expr.
type Column ¶
type Column struct {
// contains filtered or unexported fields
}
func NewColumnExpr ¶
func (*Column) ToProto ¶
func (expr *Column) ToProto(input Relation, extensions *substrait.ExtensionRegistry) (*proto.Expression, error)
type ColumnIndex ¶
type ColumnIndex struct {
// contains filtered or unexported fields
}
func NewColumnIndexExpr ¶
func NewColumnIndexExpr(index int) *ColumnIndex
func (*ColumnIndex) String ¶
func (expr *ColumnIndex) String() string
func (*ColumnIndex) ToProto ¶
func (expr *ColumnIndex) ToProto(input Relation, extensions *substrait.ExtensionRegistry) (*proto.Expression, error)
type Function ¶
type Function struct {
// contains filtered or unexported fields
}
TODO: SetFunctionRepository
func NewAddFunctionExpr ¶
func NewAnonymousFunction ¶
func NewFunctionExpr ¶
func (*Function) ToProto ¶
func (f *Function) ToProto(input Relation, extensions *substrait.ExtensionRegistry) (*proto.Expression, error)
TODO: Consolidate with Field()? ToProto implements Expr.
type Identifier ¶
type Identifier = []string
type Literal ¶
type Literal struct {
// contains filtered or unexported fields
}
func NewLiteralExpr ¶
func (*Literal) ToProto ¶
func (expr *Literal) ToProto(input Relation, extensions *substrait.ExtensionRegistry) (*proto.Expression, error)
type NamedTable ¶
type NamedTable interface { Table Identifier() Identifier SetCatalog(catalog Catalog) }
type Projection ¶
type Projection struct {
// contains filtered or unexported fields
}
func NewProjectionOperation ¶
func NewProjectionOperation(input Relation, exprs []Expr) *Projection
func (*Projection) Children ¶
func (p *Projection) Children() []Relation
func (*Projection) ToProto ¶
func (p *Projection) ToProto(extensions *substrait.ExtensionRegistry) (*proto.Rel, error)
ToProto implements Plan.
type Selection ¶
type Selection struct {
// contains filtered or unexported fields
}
func NewSelectionOperation ¶
Click to show internal directories.
Click to hide internal directories.