Influxdb: InfluxDB doesn't allow inserting "null" value for fields

Created on 14 Dec 2016  路  2Comments  路  Source: influxdata/influxdb

Bug report

__System info:__ InfluxDB 1.1.0, CentOS 7

__Steps to reproduce:__

  1. INSERT measure,purpose=test value=1i,not_working=null 1481713571901366407

__Expected behavior:__ Successful insert

__Actual behavior:__ ERR: {"error":"unable to parse 'measure,purpose=test value=1i,not_working=null 1481713571901366407': invalid number"}

__Additional info:__

I checked the documentation and as far as I can see, there is no indication that inserting null values should not be working. Even if they shouldn't work, the error message "invalid number" is rather misleading.

Most helpful comment

null is not a valid field value and is unsupported. There are only 4 field types supported, int64, float64, bool and string. See the line protocol docs for valid syntax for each of those field types.

All 2 comments

null is not a valid field value and is unsupported. There are only 4 field types supported, int64, float64, bool and string. See the line protocol docs for valid syntax for each of those field types.

Ah, you're right. I see it now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dmke picture dmke  路  45Comments

jsternberg picture jsternberg  路  57Comments

beckettsean picture beckettsean  路  44Comments

mvadu picture mvadu  路  60Comments

beckettsean picture beckettsean  路  68Comments