Expand description
information_schema.table_semantics: the queryable view over the table
semantic layer. One row per table that is part of it, so a consumer can
discover the observability concept a table stands for with a single SQL
query instead of parsing every tableโs create_options.
The few signal-agnostic keys are promoted to their own columns
(signal_type / source / source_version / pipeline /
metadata_quality); the remaining signal-specific keys are folded into a
semantic_options JSON string, keyed by the option name with the
greptime.semantic. prefix stripped.
entity_declarations reports the entities the table contributes to the
graph, including the ones the conventions derive with no option set โ so a
table with no semantic option still gets a row. It shows the outcome, not
the reasoning: a declaration dropped for naming a missing column is simply
absent, and only the log says why.
Structsยง
- Declaration
Entry ๐ - The JSON form of one declaration in the
entity_declarationscolumn. - Information
Schema ๐Semantic Tables Builder - Information
Schema ๐Table Semantics - Semantic
Row ๐ - The semantic projection of a single table: the signal-agnostic keys promoted to columns, plus a JSON tail for the rest. Borrows from the tableโs options.
Constantsยง
- ENTITY_
DECLARATIONS - INIT_
CAPACITY ๐ - METADATA_
QUALITY - PIPELINE
- SEMANTIC_
OPTIONS - SIGNAL_
TYPE - SOURCE
- SOURCE_
VERSION - TABLE_
CATALOG - TABLE_
ID - TABLE_
NAME - TABLE_
SCHEMA
Functionsยง
- entity_
declarations_ ๐json - optional_
value ๐