package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
NewConstNullOp creates a new operator that produces a constant (untyped) NULL value at index outputIdx.
NewConstOp creates a new operator that produces a constant value constVal of type t at index outputIdx.
NewOrderedDistinct creates a new ordered distinct operator on the given input columns with the given types.
NewOrdinalityOp returns a new WITH ORDINALITY operator.
NewSimpleProjectOp returns a new simpleProjectOp that applies a simple projection on the columns in its input batch, returning a new batch with only the columns in the projection slice, in order.
OrderedDistinctColsToOperators is a utility function that given an input and a slice of columns, creates a chain of distinct operators and returns the last distinct operator in that chain as well as its output column.
# Structs
UpsertDistinctHelper is a utility that helps distinct operators emit errors when they observe duplicate tuples.