Skip to content

Commit

Permalink
Merge pull request #6584 from influxdata/js-6581-show-tag-values-wher…
Browse files Browse the repository at this point in the history
…e-clause

Fix SHOW TAG VALUES condition to not filter "name" erroneously
  • Loading branch information
jsternberg committed May 9, 2016
2 parents 4748bb1 + 3f4072b commit 8a04fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsdb/shard.go
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ func NewTagValuesIterator(sh *Shard, opt influxql.IteratorOptions) (influxql.Ite
switch e.Op {
case influxql.EQ, influxql.NEQ, influxql.EQREGEX, influxql.NEQREGEX:
tag, ok := e.LHS.(*influxql.VarRef)
if !ok || tag.Val == "name" || strings.HasPrefix(tag.Val, "_") {
if !ok || strings.HasPrefix(tag.Val, "_") {
return nil
}
}
Expand Down

0 comments on commit 8a04fb8

Please sign in to comment.