bossenti opened a new issue, #1329:
URL: https://github.com/apache/streampipes/issues/1329

   ### Apache StreamPipes version
   
   dev (current development state)
   
   ### Affected StreamPipes components
   
   Backend
   
   ### What happened?
   
   The endpoint for data lake measurements allows to filter the data records 
when querying for a specific measurement.
   Hereby, you define a time window for which you want to get data by 
specifying `startDate` and `endDate`.
   If you choose both parameters so that there are no records matching your 
criterion in the data lake, the API returns no data series in the response like 
the whole measurement would not exist.
   
   ### How to reproduce?
   
   Query the API endpoint `/api/v4/datalake/measurements/<identifier>` and 
extend the query by `?startDate=valueStart&endDate=valueEnd`. 
   Choose `valueStart` and `valueEnd` in such way that there are no entries for 
targeted measurement in the corresponding time frame.
   Eventually, the API returns a response with no data series indicating the 
whole measurement does not exist.
   
   ### Expected behavior
   
   Return the metadata of the data series but with an empty array for `rows` so 
that it clearly indicates that the actual measurement exists but there is to 
data available for the given query.
   
   ### Additional technical information
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   None


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to