Expand description
Table and TableEngine requests
Modules§
- semantic 🔒
- Table semantic layer vocabulary.
Structs§
- AddColumn
Request - Add column request
- Alter
Table Request - Alter table request
- Build
Index Table Request - Compact
Table Request - Copy
Database Request - Copy
Query ToRequest - Copy
Table Request - Copy table request
- Delete
Request - Delete (by primary key) request
- Flush
Table Request - Insert
Request - Modify
Column Type Request - Change column datatype request
- SetDefault
Request - Table
Options - Truncate
Table Request - Truncate table request
Enums§
Constants§
- AUTO_
CREATE_ TABLE_ KEY - COMMENT_
KEY - DDL_
TIMEOUT - DDL_
WAIT - FILE_
TABLE_ FORMAT_ KEY - FILE_
TABLE_ LOCATION_ KEY - FILE_
TABLE_ META_ KEY - FILE_
TABLE_ PATTERN_ KEY - METADATA_
QUALITY_ DECLARED - METADATA_
QUALITY_ INFERRED - OTLP_
METRIC_ COMPAT_ KEY - OTLP_
METRIC_ COMPAT_ PROM - SEMANTIC_
LOG_ BODY_ FORMAT string/json/mixed— how to parsebody.- SEMANTIC_
LOG_ SEVERITY_ SCHEME otlp/syslog/custom— which mapping to use forseverity_number.- SEMANTIC_
METRIC_ METADATA_ QUALITY METADATA_QUALITY_DECLAREDwhen the protocol stated the type, orMETADATA_QUALITY_INFERREDwhen guessed from a name suffix.- SEMANTIC_
METRIC_ MONOTONIC true/falsefor sum / counter typed data.- SEMANTIC_
METRIC_ ORIGINAL_ NAME - Pre-translation OTel metric name when the table name was Prometheus-ised.
- SEMANTIC_
METRIC_ TEMPORALITY cumulative/delta(OTel only).- SEMANTIC_
METRIC_ TYPE - Instrument kind:
counter/gauge/histogram/summary/updown_counter/gauge_histogram/info/stateset. - SEMANTIC_
METRIC_ UNIT - UCUM unit, e.g.
s,By,{request}. - SEMANTIC_
OPTION_ KEYS - Every recognised public semantic table-option key. The set is a closed
whitelist: keys under
SEMANTIC_PREFIXthat are not listed here are rejected, so an unknown key likegreptime.semantic.unknown_keydoes not silently land in a table’s options. Adding a key to the vocabulary means adding it here. - SEMANTIC_
PER_ TABLE_ INDEX_ KEY - Internal
QueryContextextension key carrying the per-table semantic index (a{table_name -> {semantic_key: value}}JSON blob) from the ingestion encode path to the auto-create site. Deliberately OUTSIDESEMANTIC_PREFIXso it is not a valid table option and never leaks into a table’s options. - SEMANTIC_
PIPELINE - Internal ingestion pipeline / data model, e.g.
greptime_trace_v1. - SEMANTIC_
PREFIX - Reserved prefix for every public semantic table-option key.
- SEMANTIC_
RESOURCE_ ATTRIBUTES_ DROPPED true/false— whether any resource attribute was dropped at ingest.- SEMANTIC_
RESOURCE_ ATTRIBUTES_ PRESERVED - JSON array string of resource attributes promoted to first-class columns.
- SEMANTIC_
SCOPE_ PRESERVED true/false— whetherscope.name/scope.versionsurvive on the row.- SEMANTIC_
SIGNAL_ TYPE - Signal kind: one of
SIGNAL_TYPE_TRACE/SIGNAL_TYPE_LOG/SIGNAL_TYPE_METRIC/SIGNAL_TYPE_EVENT. - SEMANTIC_
SOURCE - Ingestion ecosystem, e.g.
SOURCE_OPENTELEMETRY/SOURCE_PROMETHEUS. - SEMANTIC_
SOURCE_ VERSION - Optional protocol or SDK version string, e.g.
v2(Prom remote write),1.30.0. - SEMANTIC_
TRACE_ CONVENTIONS - Semantic-conventions version the rows conform to (e.g.
otel-semconv-1.27), orSEMANTIC_VALUE_UNKNOWN/SEMANTIC_VALUE_MIXEDwhen not single-valued. - SEMANTIC_
TRACE_ HAS_ EVENTS - Whether
span_eventsare preserved on the table. - SEMANTIC_
TRACE_ HAS_ LINKS - Whether
span_linksare preserved on the table. - SEMANTIC_
VALUE_ MIXED - Sentinel for a single-valued key that saw conflicting sources.
- SEMANTIC_
VALUE_ UNKNOWN - Sentinel for a key that cannot be determined at stamp time.
- SIGNAL_
TYPE_ EVENT - SIGNAL_
TYPE_ LOG - SIGNAL_
TYPE_ METRIC - SIGNAL_
TYPE_ TRACE - SKIP_
WAL_ KEY - SOURCE_
OPENTELEMETRY - SOURCE_
PROMETHEUS - STORAGE_
KEY - TABLE_
DATA_ MODEL - TABLE_
DATA_ MODEL_ TRACE_ V1 - TRACE_
TABLE_ PARTITIONS_ HINT_ KEY - TTL_KEY
- VALID_
DDL_ OPTION_ KEYS - VALID_
TABLE_ OPTION_ KEYS - WRITE_
BUFFER_ SIZE_ KEY
Statics§
Functions§
- is_
semantic_ option_ key - Returns true if
keyis a recognised semantic table-option key (whitelist). - validate_
database_ option - Returns true if the
keyis a valid key for database. - validate_
semantic_ option - Validates a
greptime.semantic.*option’svalueagainst its allowed domain. - validate_
table_ option - Returns true if the
keyis a valid key for any engine or storage.