mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-09-07 05:59:00 +00:00
* feat(table): add entity semantic declarations Define open-ended greptime.semantic.entity.* options, validate entity columns at DDL time, and stamp OTLP trace tables with the service entity declaration. Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * feat: add read-time entity relationships graph Add computed semantic graph tables, typed DataFusion derivation plans for entity registry and trace calls edges, and streaming read-time execution. Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * test: exclude semantic graph tables from table constraints Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * refactor(operator): name the plan-builder source groupings Review feedback: build_registry_plan / build_calls_plan took anonymous (declarations, DataFrame) tuples while the caller already grouped the same fields. Introduce RegistrySource { declarations, scan } and CallsSource { service, scan } next to the builders and flow them through the frontend caller and tests. The frontend-side EntitySource keeps holding a TableRef (the operator builders stay pure over already-built scans), so the named structs live in operator rather than reusing that type. No behavior change. Signed-off-by: Dennis Zhuang <killme2008@gmail.com> --------- Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
28 lines
578 B
SQL
28 lines
578 B
SQL
--- test information_schema.table_constraints ----
|
|
|
|
USE INFORMATION_SCHEMA;
|
|
|
|
DESC TABLE TABLE_CONSTRAINTS;
|
|
|
|
SELECT *
|
|
FROM TABLE_CONSTRAINTS
|
|
WHERE TABLE_SCHEMA != 'greptime_private'
|
|
ORDER BY TABLE_NAME, CONSTRAINT_NAME;
|
|
|
|
use public;
|
|
|
|
CREATE TABLE test(i double, j string, ts timestamp time index, primary key(j));
|
|
|
|
use INFORMATION_SCHEMA;
|
|
|
|
SELECT *
|
|
FROM TABLE_CONSTRAINTS
|
|
WHERE TABLE_SCHEMA != 'greptime_private'
|
|
ORDER BY TABLE_NAME, CONSTRAINT_NAME;
|
|
|
|
SELECT * FROM TABLE_CONSTRAINTS WHERE TABLE_NAME = 'test' ORDER BY TABLE_NAME, CONSTRAINT_NAME;
|
|
|
|
use public;
|
|
|
|
DROP TABLE test;
|