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
An external reporter sent an issue regarding an anomaly with InfluxQL queries in 2.x. Using 2.7.6, I found that the following influxql queries give different results from InfluxDB 1.8.10 and 1.11.5+git.
Eg, in 2.7.6, we see a partial result with one query:
$ export V1AUTH=$(echo -n "anything:$TOKEN" | base64 --wrap 0)
# generate some line protocol
$ cat > file.lp <<EOM
t0,t0_tag0=initTag t0_f0=0i 1715694000
t0,t0_tag0=initTag t0_f0=1i 1715694001
t0,t0_tag1=initTag t0_f0=0i 1715694000
EOM
# write
$ curl -H "Authorization: Basic $V1AUTH" -X POST "$URL/write?db=test1&precision=s" --data-binary @./file.lp
$
# queries
# ok
$ curl -H "Authorization: Basic $V1AUTH" -H "Accept: application/csv" -X POST "$URL/query?db=test1&rp=autogen" --data-urlencode "q=select * from t0;"
name,tags,time,t0_f0,t0_tag0,t0_tag1
t0,,1715694000000000000,0,initTag,
t0,,1715694000000000000,0,,initTag
t0,,1715694001000000000,1,initTag,
# partial result
$ curl -H "Authorization: Basic $V1AUTH" -H "Accept: application/csv" -X POST "$URL/query?db=test1&rp=autogen" --data-urlencode "q=select * from t0 where true & ((1 != 0) and (t0_tag0 != 'tag'))"
name,tags,time,t0_f0,t0_tag0,t0_tag1
t0,,1715694000000000000,0,initTag,
t0,,1715694001000000000,1,initTag,
InfluxDB 1.8.10 and 1.11.5+git have full results for both:
$ curl -H "Authorization: Basic $V1AUTH" -H "Accept: application/csv" -X POST "$URL/query?db=test1&rp=autogen" --data-urlencode "q=select * from t0;"
name,tags,time,t0_f0,t0_tag0,t0_tag1
t0,,1715694000000000000,0,initTag,
t0,,1715694000000000000,0,,initTag
t0,,1715694001000000000,1,initTag,
$ curl -H "Authorization: Basic $V1AUTH" -H "Accept: application/csv" -X POST "$URL/query?db=test1&rp=autogen" --data-urlencode "q=select * from t0 where true & ((1 != 0) and (t0_tag0 != 'tag'))"
name,tags,time,t0_f0,t0_tag0,t0_tag1
t0,,1715694000000000000,0,initTag,
t0,,1715694000000000000,0,,initTag
t0,,1715694001000000000,1,initTag,
An external reporter sent an issue regarding an anomaly with InfluxQL queries in 2.x. Using 2.7.6, I found that the following influxql queries give different results from InfluxDB 1.8.10 and 1.11.5+git.
Eg, in 2.7.6, we see a partial result with one query:
InfluxDB 1.8.10 and 1.11.5+git have full results for both:
cc @davidby-influx
The text was updated successfully, but these errors were encountered: