feat: pql custom node (#305)

* feat: histogram fold&union distinct on

Signed-off-by: discord9 <discord9@163.com>

* make all

Signed-off-by: discord9 <discord9@163.com>

* c

Signed-off-by: discord9 <discord9@163.com>

* make all

Signed-off-by: discord9 <discord9@163.com>

---------

Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
discord9
2026-01-21 20:10:53 +08:00
committed by GitHub
parent 7755821c27
commit 4a14b140f2
5 changed files with 2856 additions and 16 deletions
@@ -148,3 +148,21 @@ message LabelPair {
string key = 1;
string value = 2;
}
message HistogramFold {
// Column index of the `le` column (histogram bucket bounds)
uint64 le_column_idx = 1;
// Column index of the timestamp column
uint64 ts_column_idx = 2;
// Column index of the field column (histogram values)
uint64 field_column_idx = 3;
// Quantile value
double quantile = 4;
}
message UnionDistinctOn {
// Indices of columns to compare for equality
repeated uint64 compare_key_indices = 1;
// Column index of the timestamp column
uint64 ts_col_idx = 2;
}