-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
7703 metricsql support metric names in quotes as alternative to name …
…metric pattern (#40) * Initial tests for label keys to be quoted * a few more tests involving numbers and quotes * Adds support for quoted UTF8 label names and special case label name without a value to specify metric name * Fixed bug with not checking for errors before calling isMetricNameFilter() * Added more testing for quoted labels Fixed bug with error not reporting because of isPossibleMetric being when a label name was not quoted * Minor tweaks to comments * Fixed tests to disregard two metric names Added tests to ensure setting two metric names threw errors * Removed extraneous comment * Duplicate metric names are now allowed Refactored code checking for quoted strings into isQuoteString Added some additional tests * Modified string output to be unescaped UTF8 chars * Revert "Modified string output to be unescaped UTF8 chars" This reverts commit 41dc7c1. * Reverted parser_example_test.go back to using standard format of metric filters Co-authored-by: Roman Khavronenko <[email protected]> * Removed / modified some tests to exclude the case of multiple metric names - this case will now throw an error and is tested in expected Fail cases * minor comments --------- Co-authored-by: Roman Khavronenko <[email protected]>
- Loading branch information
Showing
3 changed files
with
116 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters