跳转至

Lag(滞后(Lag))

Supported in: Batch, Faster

Returns the value of the input at 'lag' before the current row in the window.

Expression categories: Aggregate

Declared arguments

  • Expression: Expression to lag.
    Expression\
  • optional Default value: Default value if there is less than offset rows before the current row.
    Literal\
  • optional Lag: Number of rows to lag.
    Literal\

Type variable bounds: T accepts AnyType

Output type: T


中文翻译

滞后(Lag)

支持:批处理(Batch)、快速处理(Faster)

返回当前行在窗口中向前偏移指定行数后的输入值。

表达式类别: 聚合(Aggregate)

声明的参数

  • 表达式(Expression): 需要进行滞后计算的表达式。
    表达式\
  • 可选 默认值(Default value): 当当前行之前的行数不足偏移量时的默认值。
    字面量\
  • 可选 滞后行数(Lag): 需要滞后的行数。
    字面量\

类型变量约束: T 接受任意类型(AnyType)

输出类型: T