This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new 71cb94f03e feat: Add aggregation functions MEDIAN, SPREAD and STDDEV 
(#3527)
71cb94f03e is described below

commit 71cb94f03ef076649a15e32a913459580228f72d
Author: Dominik Riemer <[email protected]>
AuthorDate: Mon Mar 17 12:20:50 2025 +0100

    feat: Add aggregation functions MEDIAN, SPREAD and STDDEV (#3527)
---
 .../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>

Reply via email to