Merge pull request #6584 from influxdata/js-6581-show-tag-values-where-clause
Fix SHOW TAG VALUES condition to not filter "name" erroneouslypull/6600/head v0.13.0-rc2
commit
8a04fb8293
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue