Data connectivity & integrationPipeline Builder ExpressionsLast

Last

Supported in: Batch, Streaming

Last item in the group. Note, if used within an aggregate or unordered window, the row selected will be non-deterministic.

Expression categories: Aggregate

Declared arguments

  • Expression - Expression to aggregate.
    Expression<T>
  • Ignore nulls - If true, null values will be ignored.
    Literal<Boolean>

Type variable bounds: T accepts AnyType

Output type: T

Examples

Example 1: Base case

Argument values:

  • Expression: values
  • Ignore nulls: false

Given input table:

values
2
4
3

Outputs: 3