prometheus/promql
Tobias Schmidt 04ae6196f2 Fix parsing of label names which are also keywords
The current separation between lexer and parser is a bit fuzzy when it
comes to operators, aggregators and other keywords. The lexer already
tries to determine the type of a token, even though that type might
change depending on the context.

This led to the problematic behavior that no tokens known to the lexer
could be used as label names, including operators (and, by, ...),
aggregators (count, quantile, ...) or other keywords (for, offset, ...).

This change additionally checks whether an identifier is one of these
types. We might want to check whether the specific item identification
should be moved from the lexer to the parser.
2016-09-07 17:45:58 -04:00
..
fuzz-data Fuzzing corpus for ParseMetric. 2016-04-29 22:50:24 +02:00
testdata Default date functions to current time. 2016-08-29 18:22:12 +01:00
ast.go Make the storage interface higher-level. 2016-07-25 13:59:22 +02:00
bench.go promql: Fix (and simplify) populating iterators 2016-08-24 18:37:09 +02:00
engine_test.go Make the storage interface higher-level. 2016-07-25 13:59:22 +02:00
engine.go promql: Fix (and simplify) populating iterators 2016-08-24 18:37:09 +02:00
functions_test.go promql: Fix (and simplify) populating iterators 2016-08-24 18:37:09 +02:00
functions.go Merge pull request #1908 from prometheus/on-dates 2016-08-30 11:03:23 +02:00
fuzz.go Updates fuzzers to discard less interesting data 2016-05-10 11:46:03 +02:00
lex_test.go Instantiate lexer inline for the test 2016-08-29 09:20:43 +02:00
lex.go Fix parsing of label names which are also keywords 2016-09-07 17:45:58 -04:00
parse_test.go Fix parsing of label names which are also keywords 2016-09-07 17:45:58 -04:00
parse.go Fix parsing of label names which are also keywords 2016-09-07 17:45:58 -04:00
printer_test.go Add count_values() aggregator. 2016-07-05 17:14:01 +01:00
printer.go Make topk/bottomk aggregators. 2016-07-04 13:18:19 +01:00
promql_test.go Fix most golint warnings. 2015-08-26 12:44:46 +02:00
quantile.go Add quantile aggregator. 2016-07-21 00:09:19 +01:00
test.go Merge pull request #1485 from eliothedeman/master 2016-03-28 20:53:01 +01:00