Multiply numbers

Supported in: Batch, Streaming

Calculates the product of all input columns.

Expression categories: Numeric

Declared arguments

  • Expressions - List of columns to be multiplied.
    List<Expression<Numeric>>

Output type: Numeric

Examples

Example 1: Base case

Argument values:

  • Expressions: [col_a, col_b, col_c]
col_acol_bcol_cOutput
102360

Example 2: Null case

Argument values:

  • Expressions: [col_a, col_b]
col_acol_bOutput
nullnullnull

Example 3: Null case

Argument values:

  • Expressions: [col_a, col_b]
col_acol_bOutput
1nullnull

Example 4: Null case

Argument values:

  • Expressions: [col_a, col_b]
col_acol_bOutput
null1null