Skip to content

Commit

Permalink
adhoc result in unexpected request (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
yincongcyincong authored Jul 4, 2024
1 parent 6182902 commit ca65a2c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
24 changes: 12 additions & 12 deletions packages/lezer-metricsql/src/metricsql.grammar
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,18 @@ AggregateOp {
Stddev |
Stdvar |
Sum |
Topk
Topk |
Median |
Distinct |
Geomean |
Histogram |
Any |
Mad |
Mode |
Share |
Sum2 |
Zscore |
Limitk
}

AggregateModifier {
Expand Down Expand Up @@ -237,9 +248,6 @@ FunctionIdentifier {
RunningMax |
RunningMin |
RunningSum |
Distinct |
Geomean |
Histogram |
BottomkAvg |
BottomkLast |
BottomkMax |
Expand All @@ -250,14 +258,6 @@ FunctionIdentifier {
TopkMax |
TopkMedian |
TopkMin |
Any |
Limitk |
Mad |
Median |
Mode |
Share |
Sum2 |
Zscore |
LabelDel |
LabelKeep |
LabelLowercase |
Expand Down
3 changes: 3 additions & 0 deletions src/querybuilder/aggregations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export function getAggregationOperations(): QueryBuilderOperationDef[] {
...createAggregationOperation(PromOperationId.Min),
...createAggregationOperation(PromOperationId.Max),
...createAggregationOperation(PromOperationId.Count),
...createAggregationOperation(PromOperationId.Distinct),
...createAggregationOperation(PromOperationId.Geomean),
...createAggregationOperation(PromOperationId.Histogram),
...createAggregationOperationWithParam(PromOperationId.TopK, {
params: [{ name: 'K-value', type: 'number' }],
defaultParams: [5],
Expand Down
3 changes: 0 additions & 3 deletions src/querybuilder/metricsql-functions/basic/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ const basicFunctions = [
PromOperationId.RunningMax,
PromOperationId.RunningMin,
PromOperationId.RunningSum,
PromOperationId.Distinct,
PromOperationId.Geomean,
PromOperationId.Histogram
]

export function getBasicFunctions(): QueryBuilderOperationDef[] {
Expand Down

0 comments on commit ca65a2c

Please sign in to comment.