Skip to main content

apply_per_table_semantic_options

Function apply_per_table_semantic_options 

Source
fn apply_per_table_semantic_options(
    table_options: &mut HashMap<String, String>,
    ctx: &QueryContextRef,
    table_name: &str,
)
Expand description

Folds the semantic keys for table_name carried on the internal per-table index extension into table_options.

The index is a {table_name -> {semantic_key: value}} JSON blob produced by the OTLP metrics encode path (where one metric can fan out into several tables with distinct keys). Common keys shared by every table in a request travel as plain semantic extensions and are handled by fill_table_options_for_create; this carries only the per-table tail. Keys are re-checked against the vocabulary defensively. Ingestion paths without a per-table index (logs, traces, Prom RW) carry no extension, so this is a no-op for them.