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
The second issue is that the influxdb stores the double quotes of the tags as follows:
time tag1 value
---- --- -----
1583008260693608605 "ABC DEF" 25
If I use the python influxdb client the double quotes are not stored. So I tested it without surrounding double quotes. I changed write_query.rs as follows:
-Text(text) => write!(f, "\"{text}\"", text = text),
+Text(text) => write!(f, "{text}", text = text),
It works as expected. So I guess that the spaces must be handled by escaping with backslash instead of surrounding with quotes.
influxdb version is 1.3.6-1
The text was updated successfully, but these errors were encountered:
satirebird
changed the title
Space and double quotes
Spaces and double quotes
Mar 1, 2020
I have some trouble with spaces in the tags. The following code results in an error:
The error contains:
Err(DatabaseError { error: "influxdb error: \"{\"error\":\"unable to parse \'temperature,tag1=\\\"ABC DEF\\\" value=25\': invalid field format\"}\n\"" })
By replacing the spaces with a backslash influxdb accepts the request:
The second issue is that the influxdb stores the double quotes of the tags as follows:
If I use the python influxdb client the double quotes are not stored. So I tested it without surrounding double quotes. I changed write_query.rs as follows:
It works as expected. So I guess that the spaces must be handled by escaping with backslash instead of surrounding with quotes.
influxdb version is 1.3.6-1
The text was updated successfully, but these errors were encountered: