-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
populated fields don't get unset upon update #2
Comments
If a point is written with a field=value in one update, and then replaced with field=NA in the next, is the bad value removed from the DB? I think that's the case that we hit here last night... |
I think the problem is that Influx doesn't actually write null or any equivalent in the NA case. To signify a field without a value you just don't include that field when you write the point. The problem is there's no way to erase the field for that point later. So the NA in the updated point can't replace the original numeric field value. Somewhat related Influx issues and stack overflow pages (although these are more for dropping a whole column rather than a field in a single point): |
I think the only answer currently supported by InfluxDB would be to drop the series before reimporting. In this case the series would be defined by measurement and cruise tag value. |
Actually the potentially multiple series to drop would be all combinations of measurement + cruise + any other tags defined in the data set. So some initial query to discover the correct set of series to drop would need to be done, then drop those series, then import the file. |
edit: Moved original issue text to new issue #3 which describes a similar but slightly different missing data problem.
The text was updated successfully, but these errors were encountered: