allow tag keys to contain underscores

pull/10007/head
David Norton 2018-06-14 10:59:48 -04:00
parent d977c0ac24
commit 6016a80997
1 changed files with 1 additions and 1 deletions

View File

@ -1500,7 +1500,7 @@ func (s *Store) TagValues(auth query.Authorizer, shardIDs []uint64, cond influxq
switch e.Op {
case influxql.EQ, influxql.NEQ, influxql.EQREGEX, influxql.NEQREGEX:
tag, ok := e.LHS.(*influxql.VarRef)
if !ok || strings.HasPrefix(tag.Val, "_") {
if !ok || influxql.IsSystemName(tag.Val) {
return nil
}
}