You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by eb...@apache.org on 2021/08/26 18:22:01 UTC

[incubator-streampipes] 01/01: [STREAMPIPES-420] Fix data query failing due to empty where clause when no time query parameters or filters are used

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

ebi pushed a commit to branch STREAMPIPES-420
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git

commit be00df9b467833695d7d96e5f01ebbea0441909e
Author: Daniel Ebi <eb...@fzi.de>
AuthorDate: Thu Aug 26 20:21:32 2021 +0200

    [STREAMPIPES-420] Fix data query failing due to empty where clause when no time query parameters or filters are used
---
 .../streampipes/dataexplorer/v4/utils/DataLakeManagementUtils.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/streampipes-data-explorer/src/main/java/org/apache/streampipes/dataexplorer/v4/utils/DataLakeManagementUtils.java b/streampipes-data-explorer/src/main/java/org/apache/streampipes/dataexplorer/v4/utils/DataLakeManagementUtils.java
index 51c7c19..f3089c6 100644
--- a/streampipes-data-explorer/src/main/java/org/apache/streampipes/dataexplorer/v4/utils/DataLakeManagementUtils.java
+++ b/streampipes-data-explorer/src/main/java/org/apache/streampipes/dataexplorer/v4/utils/DataLakeManagementUtils.java
@@ -57,7 +57,7 @@ public class DataLakeManagementUtils {
                     params.getAsLong(QP_START_DATE),
                     params.getAsLong(QP_END_DATE),
                     filterConditions));
-        } else {
+        } else if (filterConditions != null) {
             queryParts.put(WHERE, WhereStatementParams.from(measurementId, filterConditions));
         }