You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
InfluxDB Version: [InfluxDB Cloud Serverless] Storage Engine Version 3
Platform: macOS 14.0
We have following schema:
Measurement: energy
Tags: component, site_id
Fields: amount
Steps to reproduce:
Build InfluxQL with time() function
Query using influxDBClient.queryPoints(query, QueryOptions.INFLUX_QL)
Code sample to reproduce problem
StringinfluxQL = "select time, first(amount) as amount, component, site_id from energy where site_id = 'test-251' group by time(15s)";
try (Stream<PointValues> points = influxDBClient.queryPoints(influxQL, QueryOptions.INFLUX_QL)) {
returnpoints;
}
Expected behavior
Measurement is set to PointValues.name
Tag: component, site_id are set to PointValues.tags
Fields: amount is set to PointValues.fields
time is set to PointValues.time
Actual behavior
Measurement is set to PointValues.name
Tags: component, site_id are set to PointValues.fields, tags are set to wrong place
Fields: amount is set to PointValues.fields
time is set to PointValues.time
Additional info
No response
The text was updated successfully, but these errors were encountered:
Thank you for using our client and taking the time to report the issue you've encountered.
After a preliminary investigation, it appears that the issue stems from incorrect metadata reporting by the InfluxDB server. To help you continue your work without interruption, we suggest using a simplified query as a temporary solution. Here's an adjusted query that should work for your needs:
selecttime, amount as amount, component, site_id from energy where site_id ='test-251'
This query modification sidesteps the problem by explicitly structuring the data selection, hopefully mitigating the issue at hand.
Rest assured, I will be contacting our server team to look into this matter and find a more permanent resolution. I aim to keep you updated with our progress and will reach out to you as soon as we have a clearer understanding or a fix for the issue.
@bianbian@bednar I think with an update to influx cloud the tags are now being returned in the tags property instead of the fields property now. At least this is what we've observed while debugging an issue where our tags are suddenly missing 😭
Specifications
We have following schema:
Steps to reproduce:
time()
functioninfluxDBClient.queryPoints(query, QueryOptions.INFLUX_QL)
Code sample to reproduce problem
Expected behavior
Measurement is set to
PointValues.name
Tag: component, site_id are set to
PointValues.tags
Fields: amount is set to
PointValues.fields
time is set to
PointValues.time
Actual behavior
Measurement is set to
PointValues.name
Tags: component, site_id are set to
PointValues.fields
, tags are set to wrong placeFields: amount is set to
PointValues.fields
time is set to
PointValues.time
Additional info
No response
The text was updated successfully, but these errors were encountered: