This is an automated email from the ASF dual-hosted git repository. riemer pushed a commit to branch add-aggregation-functions in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit 1fe24d866645a18ad76f80d94f9957d4c8365d3b Author: Dominik Riemer <[email protected]> AuthorDate: Wed Mar 12 22:38:00 2025 +0100 feat: Add aggregation functions MEDIAN, SPREAD and STDDEV --- .../streampipes/model/datalake/AggregationFunction.java | 5 ++++- .../field-selection/field-selection.component.html | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/streampipes-model/src/main/java/org/apache/streampipes/model/datalake/AggregationFunction.java b/streampipes-model/src/main/java/org/apache/streampipes/model/datalake/AggregationFunction.java index 7e85b47e48..fb27118e4f 100644 --- a/streampipes-model/src/main/java/org/apache/streampipes/model/datalake/AggregationFunction.java +++ b/streampipes-model/src/main/java/org/apache/streampipes/model/datalake/AggregationFunction.java @@ -20,13 +20,16 @@ package org.apache.streampipes.model.datalake; public enum AggregationFunction { MEAN("MEAN"), + MEDIAN("MEDIAN"), MIN("MIN"), MAX("MAX"), COUNT("COUNT"), FIRST("FIRST"), LAST("LAST"), MODE("MODE"), - SUM("SUM"); + STDDEV("STDDEV"), + SUM("SUM"), + SPREAD("SPREAD"); private final String dbName; diff --git a/ui/src/app/data-explorer/components/chart-view/designer-panel/data-settings/field-selection/field-selection.component.html b/ui/src/app/data-explorer/components/chart-view/designer-panel/data-settings/field-selection/field-selection.component.html index 16734effeb..2f81f88cfd 100644 --- a/ui/src/app/data-explorer/components/chart-view/designer-panel/data-settings/field-selection/field-selection.component.html +++ b/ui/src/app/data-explorer/components/chart-view/designer-panel/data-settings/field-selection/field-selection.component.html @@ -63,6 +63,21 @@ <mat-option [value]="'SUM'"> <span class="pipeline-name">{{ 'Sum' | translate }}</span> </mat-option> + <mat-option [value]="'MEDIAN'" *ngIf="field.numeric"> + <span class="pipeline-name">{{ + 'Median' | translate + }}</span> + </mat-option> + <mat-option [value]="'STDDEV'" *ngIf="field.numeric"> + <span class="pipeline-name">{{ + 'Standard deviation' | translate + }}</span> + </mat-option> + <mat-option [value]="'SPREAD'" *ngIf="field.numeric"> + <span class="pipeline-name">{{ + 'Spread' | translate + }}</span> + </mat-option> </mat-select> </mat-form-field> </div>
