insert

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Process = iota
	End
)

Variables

This section is empty.

Functions

func Call

func Call(idx int, proc *process.Process, arg any, _ bool, _ bool) (process.ExecStatus, error)

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

func Prepare

func Prepare(proc *process.Process, arg any) error

func String

func String(_ any, buf *bytes.Buffer)

Types

type Argument

type Argument struct {
	ToWriteS3 bool // mark if this insert's target is S3 or not.
	InsertCtx *InsertCtx
	// contains filtered or unexported fields
}

func (*Argument) AffectedRows added in v0.8.0

func (ap *Argument) AffectedRows() uint64

func (*Argument) Free added in v0.6.0

func (ap *Argument) 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 (*Argument) GetAffectedRows added in v0.8.0

func (ap *Argument) GetAffectedRows() *uint64

type InsertCtx added in v0.7.0

type InsertCtx struct {
	//insert data into Rel.
	Rel                   engine.Relation
	Ref                   *plan.ObjectRef
	AddAffectedRows       bool
	Attrs                 []string
	PartitionTableIDs     []uint64          // Align array index with the partition number
	PartitionTableNames   []string          // Align array index with the partition number
	PartitionIndexInBatch int               // The array index position of the partition expression column
	PartitionSources      []engine.Relation // Align array index with the partition number
	TableDef              *plan.TableDef
}

Jump to

Keyboard shortcuts

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