influxdb/influxdb — pull request #240 by jvshahid (2014-02-10 19:14:40+00:00)
Title: Unable to query against columns with dots in their names

There is some problem querying columns that have dots (and I guess other 'special' symbols in their names).

I've created a single point with two columns - a.1 & a.2 in a series called foo.

When I request all the data (*), I do get proper result:

curl 'http://localhost:8086/db/metrics/series?u=root&p=root&q=select+*+from+foo'

[{"name":"foo","columns":["time","sequence_number","a.1","a.2"],"points":[[1391713357450,487020001,1,2]]}]

When I request the first column (a.1) everything still looks good:

curl 'http://localhost:8086/db/metrics/series?u=root&p=root&q=select+a.1+from+foo'

[{"name":"foo","columns":["time","sequence_number","a.1"],"points":[[1391713357450,487020001,1]]}]

When I request the second column (a.2) though, unexpected stuff happens (data for a.1 is returned):

curl 'http://localhost:8086/db/metrics/series?u=root&p=root&q=select+a.2+from+foo'

[{"name":"foo","columns":["time","sequence_number","a.1"],"points":[[1391713357450,487020001,1]]}]