Skip to main content

sum_column

Function sum_column 

Source
pub async fn sum_column(
    column: usize,
    inputs: Inputs<RecordBatch>,
    output: Output<ScalarValue>,
) -> Result
Expand description

A block that outputs the sum of the values in a given column.

Panics in case the specified column index is out of bounds. Outputs ScalarValue::Null in case the specified column has a non-numeric datatype.