Expand description
Prometheus row-level helpers for converting proto Rows into Arrow
RecordBatches and aligning / normalizing their schemas against
existing table schemas in the catalog.
Functionsยง
- build_
arrow_ ๐array - Build a single Arrow array for the given column index from proto
Rows. - build_
prom_ create_ table_ schema_ from_ proto - Build a
Vec<ColumnSchema>suitable for creating a new Prometheus logical table directly from the protorows.schema, avoiding the round-trip through Arrow schema. - identify_
missing_ ๐columns_ from_ proto - Identify tag columns in the proto
rows_schemathat are absent from the target region schema, without building an intermediateRecordBatch. - rows_
to_ ๐aligned_ record_ batch - Directly converts proto
Rowsinto aRecordBatchaligned to the giventarget_schema, handling Prometheus column renaming (timestamp/value), reordering, type casting, and null-filling in a single pass. - unzip_
logical_ ๐region_ schema - Extract timestamp, field, and tag column names from a logical region schema.