Skip to main content

Module insert

Module insert 

Source

Structsยง

CreateAlterTableResult ๐Ÿ”’
Result of create_or_alter_tables_on_demand.
FlowMirrorTask ๐Ÿ”’
Inserter
InstantAndNormalInsertRequests
Split insert requests into normal and instant requests.

Enumsยง

AutoCreateTableType
Hint for the table type to create automatically.

Constantsยง

SPLUNK_PK_METADATA_ORDER_KEY
QueryContext extension key the Splunk HEC handler sets (to "true") on its identity path to request metadata-first primary-key ordering at table creation. It is absent for user-supplied pipelines, so their primary-key order is left untouched.

Functionsยง

apply_per_table_semantic_options
Folds the semantic keys of the table being created into table_options.
build_create_table_expr
fill_table_options_for_create
Fill table options for a new table by create type.
parse_per_table_semantic_index
Parses the per-table semantic index off the context extension. Call once per create-planning round: a first write creating N tables would otherwise re-parse the whole index N times. None when the request carries no index (logs, traces, Prom RW v1) or it fails to parse.
reorder_splunk_primary_keys ๐Ÿ”’
Moves Splunkโ€™s metadata tags (host, source, sourcetype) to the front of the primary key, keeping the relative order of the remaining tags.
request_is_native_histogram ๐Ÿ”’
table_is_native_histogram ๐Ÿ”’
validate_column_count_match ๐Ÿ”’

Type Aliasesยง

InserterRef
PerTableSemanticIndex
The parsed per-table semantic index: {schema -> {table -> {key -> value}}}, produced by the OTLP metrics encode path (where one metric can fan out into several tables with distinct keys) and the Prometheus remote write v2 path (where per-series metadata declares type/unit, and a series may override its target schema).