Replies: 8 comments
-
I'd like to take a look :) Please assign it to me @bossenti |
Beta Was this translation helpful? Give feedback.
-
I have done some experiments these days and found that the reason why the API returns a response indicating the whole measurement does not exist when no data between startDate and endDate: The InfluxDB client always returns a response with no metadata when querying a timeline with no data between startDate and endDate (even if the timeline exists). So, there seems to be some difficulty in achieving the expected behavior. In fact, I have some immature solutions in my mind. But in my solutions, at least one query call of Influxdb needs to be added in I'm not sure what to do next now. @bossenti What do you think? 😂😂 |
Beta Was this translation helpful? Give feedback.
-
Thanks for investigating @SteveYurongSu! Hm, if that's the standard behavior of the influx client, this might be fine as it is🤔 What would be the expected behavior for you? |
Beta Was this translation helpful? Give feedback.
-
In order to confirm whether the behavior of InfluxDB is reasonable, I checked the behavior of IoTDB (v0.13.4) when querying a existed timeline with no data between The IoTDB server returned the metadata of the timeline but with an empty array for rows in result dataset. It clearly indicated that the actual timelines exist but there was no data available for the given query. The behavior of IoTDB was what exactly we expected for. 🤔 Steps to check the behavior of IoTDB:
On the other hand, I think it may be ok if InfluxDB's standard behavior does not affect the implementation of streampipes. What do you think? @bossenti |
Beta Was this translation helpful? Give feedback.
-
Okay good to know 🤔 |
Beta Was this translation helpful? Give feedback.
-
+1 for starting a discussion about the pros and cons of inlfluxdb and comparing it with iotdb |
Beta Was this translation helpful? Give feedback.
-
I'm fine with the influxdb's behaviour. Let's close it as wont-fix. 🙂 @bossenti
+1 from my side too :) @tenthe |
Beta Was this translation helpful? Give feedback.
-
Moved the issue to a discussion for better discoverability |
Beta Was this translation helpful? Give feedback.
-
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
andendDate
.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
andvalueEnd
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
Beta Was this translation helpful? Give feedback.
All reactions