insert

package
v0.0.0-debug-20260702 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPartitionInsert

func NewPartitionInsert(
	raw *Insert,
	tableID uint64,
) vm.Operator

func NewPartitionInsertFrom

func NewPartitionInsertFrom(
	ps *PartitionInsert,
) vm.Operator

Types

type Insert

type Insert struct {
	ToWriteS3 bool // mark if this insert's target is S3 or not.
	// ToExternal marks that this insert writes into a writable external table's
	// backing files (CSV/JSONLine in a stage) instead of an engine relation.
	ToExternal bool
	InsertCtx  *InsertCtx

	vm.OperatorBase
	// contains filtered or unexported fields
}

func NewArgument added in v1.2.0

func NewArgument() *Insert

func (*Insert) Call

func (insert *Insert) Call(proc *process.Process) (vm.CallResult, error)

first parameter: true represents whether the current pipeline has ended first parameter: false

func (*Insert) ExecProjection

func (insert *Insert) ExecProjection(proc *process.Process, input *batch.Batch) (*batch.Batch, error)

func (*Insert) Free

func (insert *Insert) Free(proc *process.Process, pipelineFailed bool, err error)

The Argument for insert data directly to s3 can not be free when this function called as some datastructure still needed. therefore, those argument in remote CN will be free in connector operator, and local argument will be free in mergeBlock operator

func (*Insert) GetAffectedRows

func (insert *Insert) GetAffectedRows() uint64

func (*Insert) GetOperatorBase

func (insert *Insert) GetOperatorBase() *vm.OperatorBase

func (*Insert) OpType

func (insert *Insert) OpType() vm.OpType

func (*Insert) Prepare

func (insert *Insert) Prepare(proc *process.Process) error

func (*Insert) Release

func (insert *Insert) Release()

func (*Insert) Reset

func (insert *Insert) Reset(proc *process.Process, pipelineFailed bool, err error)

func (*Insert) String

func (insert *Insert) String(buf *bytes.Buffer)

func (Insert) TypeName

func (insert Insert) TypeName() string

type InsertCtx added in v0.7.0

type InsertCtx struct {
	// insert data into Rel.
	Engine          engine.Engine
	Ref             *plan.ObjectRef
	AddAffectedRows bool     // for hidden table, should not update affect Rows
	Attrs           []string // letter case: origin
	TableDef        *plan.TableDef

	// ExternalConfig is populated at compile time when the target is a writable
	// external table; consumed by the operator to build an ExternalWriter.
	ExternalConfig externalwrite.WriterConfig
}

type PartitionInsert

type PartitionInsert struct {
	vm.OperatorBase
	// contains filtered or unexported fields
}

func (*PartitionInsert) Call

func (op *PartitionInsert) Call(
	proc *process.Process,
) (vm.CallResult, error)

func (*PartitionInsert) ExecProjection

func (op *PartitionInsert) ExecProjection(
	proc *process.Process,
	input *batch.Batch,
) (*batch.Batch, error)

func (*PartitionInsert) Free

func (op *PartitionInsert) Free(
	proc *process.Process,
	pipelineFailed bool,
	err error,
)

func (*PartitionInsert) GetOperatorBase

func (op *PartitionInsert) GetOperatorBase() *vm.OperatorBase

func (*PartitionInsert) OpType

func (op *PartitionInsert) OpType() vm.OpType

func (*PartitionInsert) Prepare

func (op *PartitionInsert) Prepare(
	proc *process.Process,
) error

func (*PartitionInsert) Release

func (op *PartitionInsert) Release()

func (*PartitionInsert) Reset

func (op *PartitionInsert) Reset(
	proc *process.Process,
	pipelineFailed bool,
	err error,
)

func (*PartitionInsert) String

func (op *PartitionInsert) String(buf *bytes.Buffer)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL