Skip to content

Commit

Permalink
fix: traceql
Browse files Browse the repository at this point in the history
  • Loading branch information
akvlad committed Mar 25, 2024
1 parent c1ddee9 commit bada4b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions traceql/clickhouse_transpiler/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ module.exports.standardBuilder = (fn) => {
return this
}

/**
*
* @returns {BuiltProcessFn}
*/
build () {
return (ctx) => {
const sel = this.main ? this.main(ctx) : null
Expand Down
2 changes: 1 addition & 1 deletion traceql/traceql.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and_or ::= "&&" | "||"
aggregator ::= "|" <OWSP> <fn> <OWSP> <attr> <OWSP> <cmp> <OWSP> <cmp_val>
fn ::= "count"|"sum"|"min"|"max"|"avg"
attr ::= "(" <OWSP> [ <label_name> ] <OWSP> ")"
cmp ::= "="|"!="|"<"|"<="|">"|">="
cmp ::= "="|"!="|"<="|">="|"<"|">"
cmp_val ::= <number> [<measurement>]
measurement ::= "ns"|"us"|"ms"|"s"|"m"|"h"|"d"

Expand Down

0 comments on commit bada4b6

Please sign in to comment.