Skip to main content

group_source_schema

Function group_source_schema 

Source
pub fn group_source_schema(
    input_columns: &OrderedMap<Column>,
    ordering: &[OrderPart],
    aggregate: &Aggregate,
) -> Result<GroupSchema, PipelineError>
Expand description

groupSourceSchema: the columns, primary key and sort of the rows GroupBy emits: the group columns, the group’s key (_0_key) and the aggregate’s payload, with a sum or average’s row count (_0_rows).

The key is the group’s values in one string, since a synced row key can’t hold a null, which is a value like any other here.