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

stuff separated by comma(s) inside parenthesis generate extra columns with empty title #9570

Closed
lipoteFR opened this issue Mar 13, 2018 · 2 comments

Comments

@lipoteFR
Copy link

lipoteFR commented Mar 13, 2018

First trouble with 1.5.0 : #9562
To reproduce bug see below

@lipoteFR
Copy link
Author

lipoteFR commented Mar 14, 2018

#!/bin/env python
from influxdb import InfluxDBClient
client = InfluxDBClient( host='<ip>', port=8086 )

client.drop_measurement('test_bug')
p = [{ "measurement" : "test_bug"
     , "time"        : "2018-03-14T09:00:00Z"
     , "tags"        : {"tag_key": "tag_value"}
     , "fields"      : { "value": 0.64} } ]

client.write_points(p)

result = client.query("SELECT * FROM test_bug")
print result
#exit(8)
p = [{ "measurement" : "test_bug"
     , "time"        : "2018-03-14T08:00:00Z"
     , "tags"        : {"tag_key": "tag_value (toto, titi)"}
     , "fields"      : { "value": 0.64} } ]

client.write_points(p)

result = client.query("SELECT * FROM test_bug")
print result

gives :

ResultSet({'(u'test_bug', None)': 
[{u'tag_key': u'tag_value', u'value': 0.64, u'time': u'2018-03-14T09:00:00Z'}]})

ResultSet({'(u'test_bug', None)': 
[{u'': None, u'tag_key': u'tag_value (toto, titi)', u'value': 0.64, u'time': u'2018-03-14T08:00:00Z'}
,{u'': None, u'tag_key': u'tag_value', u'value': 0.64, u'time': u'2018-03-14T09:00:00Z'}]})

Because tag_value contains (toto,tutu) a new column appear
it brakes every thing
We test also with just (,) same bug
Ma base est toute cassée (crote)

@e-dard
Copy link
Contributor

e-dard commented Mar 14, 2018

Thanks for these repro steps. I can now repro the issue. I'm going to close this issue as it's a duplicate of #9545. I'll update with status there.

@e-dard e-dard closed this as completed Mar 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants