Skip to main content

Module schema

Module schema 

Source
Expand description

Arrow schemas for the columnar memory tables.

memory_nodes / memory_edges are ordinary Kyma columnar tables, written through the ingest WritePath and registered as the memory graph. They must be created with an EXPLICIT schema (auto-provisioning can’t declare the embedding vector column). Timestamps are stored as RFC3339 strings so lexicographic ordering = chronological ordering (and to avoid Arrow timestamp-coercion pitfalls); updated_at is the latest-wins version key.

Constants§

BITEMPORAL_COLUMNS
Columns an older memory_nodes table may be missing (added after initial provisioning: bi-temporal validity + the topic-key upsert key). The writer detects the drift and backfills them via alter_table_add_column (old extents null-fill on read).

Functions§

memory_edges_schema
Schema for memory_edges. Graph columns: src, dst, type, realm. target_namespace carries the foreign endpoint’s database/graph for cross-graph REFERENCES edges so the unified canvas can stitch them.
memory_nodes_schema
Schema for memory_nodes. dim is the embedding dimension (e.g. 384).