You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2026/10/07 10:07:06 UTC

(streampipes) branch dev updated: fix(#5069): Charts in dashboards ignore missing values by default (#5071)

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

dominikriemer 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 952f209efe fix(#5069): Charts in dashboards ignore missing values by default (#5071)
952f209efe is described below

commit 952f209efe9c5c54503f58b8b95f9413d06ce6ed
Author: Sven Oehler <43...@users.noreply.github.com>
AuthorDate: Wed Oct 7 12:07:00 2026 +0200

    fix(#5069): Charts in dashboards ignore missing values by default (#5071)
---
 .../org/apache/streampipes/rest/impl/dataset/DatasetResource.java    | 2 +-
 .../rest/impl/dataset/KioskDashboardDataLakeResource.java            | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/dataset/DatasetResource.java b/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/dataset/DatasetResource.java
index f2cdbd02a8..cbb23e1e73 100644
--- a/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/dataset/DatasetResource.java
+++ b/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/dataset/DatasetResource.java
@@ -250,7 +250,7 @@ public class DatasetResource extends AbstractDatasetResource {
 
     var results = queryParams.stream()
         .map(params -> new ProvidedRestQueryParams(params.get("measureName"), params))
-        .map(params -> executeQuery(params, true))
+        .map(params -> executeQuery(params, isIgnoreMissingValues(params.getAsString(QP_MISSING_VALUE_BEHAVIOUR))))
         .collect(Collectors.toList());
 
     return ok(results);
diff --git a/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/dataset/KioskDashboardDataLakeResource.java b/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/dataset/KioskDashboardDataLakeResource.java
index ed21b08292..1834b565ac 100644
--- a/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/dataset/KioskDashboardDataLakeResource.java
+++ b/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/dataset/KioskDashboardDataLakeResource.java
@@ -44,6 +44,8 @@ import org.springframework.web.bind.annotation.RestController;
 import java.util.List;
 import java.util.Map;
 
+import static org.apache.streampipes.model.dataset.param.SupportedRestQueryParams.QP_MISSING_VALUE_BEHAVIOUR;
+
 @RestController
 @RequestMapping("/api/v3/datalake/dashboard/kiosk")
 public class KioskDashboardDataLakeResource extends AbstractAuthGuardedRestResource {
@@ -97,7 +99,8 @@ public class KioskDashboardDataLakeResource extends AbstractAuthGuardedRestResou
     } else {
       ProvidedRestQueryParams sanitizedParams = new ProvidedRestQueryParams(measureName, queryParams);
       var result = queryService.queryByName(measureName, RestQuerySpecMapper.parse(sanitizedParams),
-          RestQuerySpecMapper.options(sanitizedParams, true));
+          RestQuerySpecMapper.options(sanitizedParams,
+              "ignore".equals(sanitizedParams.getAsString(QP_MISSING_VALUE_BEHAVIOUR))));
       if (sanitizedParams.has("forId")) {
         result.setForId(sanitizedParams.getAsString("forId"));
       }