Skip to main content

Module consts

Module consts 

Source

Constants§

CONFIDENCE_COLUMN
DEFAULT_CATALOG_NAME
DEFAULT_PRIVATE_SCHEMA_NAME
DEFAULT_SCHEMA_NAME
DST_ID_COLUMN
DST_TYPE_COLUMN
DURATION_COUNT_COLUMN
DURATION_MAX_COLUMN
DURATION_NANO_COLUMN
DURATION_SUM_COLUMN
EDGE_ATTRIBUTES_COLUMN
ENTITY_DESCRIPTIVE_COLUMN
ENTITY_ID_ATTRS_COLUMN
ENTITY_ID_COLUMN
ENTITY_SCOPE_COLUMN
ENTITY_TYPE_COLUMN
ERROR_COUNT_COLUMN
FILE_ENGINE
FRESH_UNTIL_COLUMN
GENERATION_ID_COLUMN
INFORMATION_SCHEMA_ALERTS_TABLE_ID
id for information_schema.alerts
INFORMATION_SCHEMA_BUILD_INFO_TABLE_ID
id for information_schema.build_info
INFORMATION_SCHEMA_CHARACTER_SETS_TABLE_ID
id for information_schema.CHARACTER_SETS
INFORMATION_SCHEMA_CHECK_CONSTRAINTS_TABLE_ID
id for information_schema.CHECK_CONSTRAINTS
INFORMATION_SCHEMA_CLUSTER_INFO_TABLE_ID
id for information_schema.cluster_info
INFORMATION_SCHEMA_COLLATIONS_TABLE_ID
id for information_schema.COLLATIONS
INFORMATION_SCHEMA_COLLATION_CHARACTER_SET_APPLICABILITY_TABLE_ID
id for information_schema.COLLATIONS
INFORMATION_SCHEMA_COLUMNS_TABLE_ID
id for information_schema.columns
INFORMATION_SCHEMA_COLUMN_PRIVILEGES_TABLE_ID
id for information_schema.column_privileges
INFORMATION_SCHEMA_COLUMN_STATISTICS_TABLE_ID
id for information_schema.column_statistics
INFORMATION_SCHEMA_ENGINES_TABLE_ID
id for information_schema.engines
INFORMATION_SCHEMA_EVENTS_TABLE_ID
id for information_schema.EVENTS
INFORMATION_SCHEMA_FILES_TABLE_ID
id for information_schema.FILES
INFORMATION_SCHEMA_FLOW_STATISTICS_TABLE_ID
id for information_schema.flow_statistics
INFORMATION_SCHEMA_FLOW_TABLE_ID
id for information_schema.FLOWS
INFORMATION_SCHEMA_GLOBAL_STATUS_TABLE_ID
id for information_schema.GLOBAL_STATUS
INFORMATION_SCHEMA_KEY_COLUMN_USAGE_TABLE_ID
id for information_schema.KEY_COLUMN_USAGE
INFORMATION_SCHEMA_NAME
INFORMATION_SCHEMA_OPTIMIZER_TRACE_TABLE_ID
id for information_schema.OPTIMIZER_TRACE
INFORMATION_SCHEMA_PARAMETERS_TABLE_ID
id for information_schema.PARAMETERS
INFORMATION_SCHEMA_PARTITIONS_TABLE_ID
id for information_schema.PARTITIONS
INFORMATION_SCHEMA_PLUGINS_TABLE_ID
id for information_schema.PLUGINS
INFORMATION_SCHEMA_PROCEDURE_INFO_TABLE_ID
id for information_schema.procedure_info
INFORMATION_SCHEMA_PROCESSLIST_TABLE_ID
id for information_schema.PROCESSLIST (for mysql)
INFORMATION_SCHEMA_PROCESS_LIST_TABLE_ID
id for information_schema.process_list
INFORMATION_SCHEMA_PROFILING_TABLE_ID
id for information_schema.PROFILING
INFORMATION_SCHEMA_RECYCLE_BIN_TABLE_ID
id for information_schema.recycle_bin
INFORMATION_SCHEMA_REFERENTIAL_CONSTRAINTS_TABLE_ID
id for information_schema.REFERENTIAL_CONSTRAINTS
INFORMATION_SCHEMA_REGION_INFO_TABLE_ID
id for information_schema.region_info
INFORMATION_SCHEMA_REGION_PEERS_TABLE_ID
id for information_schema.REGION_PEERS
INFORMATION_SCHEMA_REGION_STATISTICS_TABLE_ID
id for information_schema.region_statistics
INFORMATION_SCHEMA_ROUTINES_TABLE_ID
id for information_schema.ROUTINES
INFORMATION_SCHEMA_SCHEMATA_TABLE_ID
id for information_schema.SCHEMATA
INFORMATION_SCHEMA_SCHEMA_PRIVILEGES_TABLE_ID
id for information_schema.SCHEMA_PRIVILEGES
INFORMATION_SCHEMA_SESSION_STATUS_TABLE_ID
id for information_schema.SESSION_STATUS
INFORMATION_SCHEMA_SSTS_INDEX_META_TABLE_ID
id for information_schema.ssts_index_meta
INFORMATION_SCHEMA_SSTS_MANIFEST_TABLE_ID
id for information_schema.ssts_manifest
INFORMATION_SCHEMA_SSTS_STORAGE_TABLE_ID
id for information_schema.ssts_storage
INFORMATION_SCHEMA_STATISTICS_TABLE_ID
id for information_schema.statistics
INFORMATION_SCHEMA_TABLES_TABLE_ID
—– Begin of information_schema tables —– id for information_schema.tables
INFORMATION_SCHEMA_TABLE_CONSTRAINTS_TABLE_ID
id for information_schema.columns
INFORMATION_SCHEMA_TABLE_PRIVILEGES_TABLE_ID
id for information_schema.TABLE_PRIVILEGES
INFORMATION_SCHEMA_TABLE_SEMANTICS_TABLE_ID
id for information_schema.table_semantics
INFORMATION_SCHEMA_TRIGGERS_TABLE_ID
id for information_schema.TRIGGERS (for mysql)
INFORMATION_SCHEMA_USER_PRIVILEGES_TABLE_ID
id for information_schema.USER_PRIVILEGES
INFORMATION_SCHEMA_VIEW_TABLE_ID
id for information_schema.VIEWS
MAX_SYS_TABLE_ID
the max system table id
METRIC_ENGINE
MIN_USER_FLOW_ID
Reserves [0,MIN_USER_FLOW_ID) for internal usage. User defined table id starts from this value.
MIN_USER_TABLE_ID
Reserves [0,MIN_USER_TABLE_ID) for internal usage. User defined table id starts from this value.
MITO2_ENGINE
MITO_ENGINE
NUMBERS_TABLE_ID
numbers table id
OBSERVED_AT_COLUMN
PARENT_SPAN_ID_COLUMN
PG_CATALOG_NAME
PG_CATALOG_TABLE_ID_START
—– Begin of pg_catalog tables —–
PROVENANCE_COLUMN
REL_TYPE_COLUMN
REQUEST_COUNT_COLUMN
RESOURCE_ATTRIBUTES_COLUMN
Column containing resource attributes as JSON2.
SCOPE_ATTRIBUTES_COLUMN
Column containing instrumentation scope attributes as JSON2.
SCRIPTS_TABLE_ID
scripts table id
SEMANTIC_ENTITIES_TABLE_ID
id for greptime_private.semantic_entities (computed entity registry)
SEMANTIC_ENTITIES_TABLE_NAME
Computed entity registry: the node set of the observability graph, derived at read time from tables that declared greptime.semantic.entity.* identities.
SEMANTIC_GRAPH_WINDOW_NANOS
Width of the window the graph derivation bins observations into. Sources synthesizing observations must land a row in every window they describe, so this is shared rather than restated per crate.
SEMANTIC_RELATIONSHIPS_DECLARED_TABLE_NAME
Physical table of hand-declared edges, unioned into the computed semantic_relationships; see is_ddl_reserved_table for its lifecycle.
SEMANTIC_RELATIONSHIPS_TABLE_ID
id for greptime_private.semantic_relationships (computed edge set)
SEMANTIC_RELATIONSHIPS_TABLE_NAME
Computed relationship set: the edge set of the observability graph, derived at read time (calls/runs_on/… ) and unioned with the declared-edge table.
SEMANTIC_TYPE_FIELD
SEMANTIC_TYPE_PRIMARY_KEY
SEMANTIC_TYPE_TIME_INDEX
SERVICE_NAME_COLUMN
SOURCE_TABLES_COLUMN
SPAN_ATTRIBUTES_COLUMN
Column containing span attributes as JSON/JSON2.
SPAN_ID_COLUMN
SPAN_KIND_CLIENT
SPAN_KIND_COLUMN
SPAN_KIND_SERVER
SPAN_NAME_COLUMN
SPAN_STATUS_CODE_COLUMN
SPAN_STATUS_ERROR
SRC_ID_COLUMN
SRC_TYPE_COLUMN
SYSTEM_CATALOG_NAME
SYSTEM_CATALOG_TABLE_ID
system_catalog table id
SYSTEM_CATALOG_TABLE_NAME
SYSTEM_SCHEMA_NAMES 🔒
TRACE_ID_COLUMN
TRACE_TABLE_NAME
TRACE_TABLE_NAME_SESSION_KEY
TRACE_TIMESTAMP_COLUMN
UNMATCHED_COUNT_COLUMN
VALID_FROM_COLUMN
VALID_UNTIL_COLUMN
WINDOW_END_COLUMN
WINDOW_START_COLUMN

Functions§

default_engine
is_ddl_reserved_table
Returns true for tables whose definition is system-owned while their rows are user-written: created with a canonical schema on first write; user CREATE/ALTER/RENAME-into rejected; DML and DROP/TRUNCATE allowed (the next write recreates the table). Currently only the declared-edge table.
is_readonly_schema
is_readonly_table
Returns true for tables that must reject DDL/DML: everything in a read-only schema, plus computed system tables overlaid on a writable schema (the entity-graph tables under greptime_private).
system_schema_name
Returns the canonical name of the system schema schema refers to, ignoring ASCII case, or None if it is not one.
trace_operations_table_name
Generate the trace operations table name from the trace table name by adding _operations suffix.
trace_services_table_name
Generate the trace services table name from the trace table name by adding _services suffix.