-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from djluck/types
Adding stronger validation of PromQL expressions, principally type checking which will allow consumers to validate the type an expression produces. This has meant a lot of improvements: - Aggregate operator and function signatures are now defined in the library and parameter counts and types can be checked. - Binary expressions are now parsed with the (correct) associativeness: left associativeness. - Binary operators now have precedence associated with them and binary expressions are grouped according to this - Every expression can determine it's return type - Expression types preceeding offset expressions are now validated more carefully - Positions of parsed expressions from the source input are now available in all AST nodes
- Loading branch information
Showing
12 changed files
with
1,332 additions
and
440 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
Oops, something went wrong.