Skip to content
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

Open
ctberthiaume opened this issue May 31, 2017 · 4 comments
Open

populated fields don't get unset upon update #2

ctberthiaume opened this issue May 31, 2017 · 4 comments
Assignees
Labels

Comments

@ctberthiaume
Copy link
Owner

ctberthiaume commented May 31, 2017

edit: Moved original issue text to new issue #3 which describes a similar but slightly different missing data problem.

@vsivsi
Copy link
Collaborator

vsivsi commented May 31, 2017

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...

@ctberthiaume
Copy link
Owner Author

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):

@ctberthiaume
Copy link
Owner Author

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.

@ctberthiaume
Copy link
Owner Author

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.

@ctberthiaume ctberthiaume self-assigned this May 31, 2017
@ctberthiaume ctberthiaume changed the title influxMissingData not updated properly populated fields don't get unset upon update Jun 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants