package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
GetOffsetTypeFromOrderColType returns the correct offset type for the given order column type for a window frame in RANGE mode with offsets.
NewCountRowsOperator creates a new Operator that computes the count_rows aggregate window function.
NewFirstValueOperator creates a new Operator that computes window function firstValue.
NewLagOperator creates a new Operator that computes window function lag.
NewLastValueOperator creates a new Operator that computes window function lastValue.
NewLeadOperator creates a new Operator that computes window function lead.
NewNthValueOperator creates a new Operator that computes window function nthValue.
NewNTileOperator creates a new Operator that computes window function NTILE.
NewRankOperator creates a new Operator that computes window functions RANK or DENSE_RANK (depending on the passed in windowFn).
NewRelativeRankOperator creates a new Operator that computes window functions PERCENT_RANK or CUME_DIST (depending on the passed in windowFn).
NewRowNumberOperator creates a new Operator that computes window function ROW_NUMBER.
NewWindowAggregatorOperator creates a new Operator that computes aggregate window functions.
NewWindowPeerGrouper creates a new Operator that puts 'true' in outputColIdx'th column (which is appended if needed) for every tuple that is the first within its peer group.
NewWindowSortingPartitioner creates a new colexecop.Operator that orders input first based on the partitionIdxs columns and second on ordCols (i.e.
NormalizeWindowFrame returns a frame that is identical to the given one except that the default values have been explicitly set (where before they may have been nil).
WindowFnArgCasts returns a list of types to which the given window function arguments should be cast.
WindowFnNeedsPeersInfo returns whether a window function pays attention to the concept of "peers" during its computation ("peers" are tuples within the same partition - from PARTITION BY clause - that are not distinct on the columns in ORDER BY clause).
WindowFrameCanShrink returns true if a sliding window aggregate function over the given frame may need to call Remove, which is the case when the frame for a given row may not include all rows that were part of the previous frame.
# Structs
WindowArgs extracts common arguments to window operators.