mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-09-13 00:42:14 +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>
83 lines
1.6 KiB
Plaintext
83 lines
1.6 KiB
Plaintext
create schema abc;
|
|
|
|
Affected Rows: 1
|
|
|
|
use abc;
|
|
|
|
Affected Rows: 0
|
|
|
|
create table t (ts timestamp time index);
|
|
|
|
Affected Rows: 0
|
|
|
|
create schema abcde;
|
|
|
|
Affected Rows: 1
|
|
|
|
use abcde;
|
|
|
|
Affected Rows: 0
|
|
|
|
create table t (ts timestamp time index);
|
|
|
|
Affected Rows: 0
|
|
|
|
select table_catalog, table_schema, table_name from information_schema.tables where table_schema not in ('information_schema', 'greptime_private');
|
|
|
|
+---------------+--------------+------------+
|
|
| table_catalog | table_schema | table_name |
|
|
+---------------+--------------+------------+
|
|
| greptime | abc | t |
|
|
| greptime | abcde | t |
|
|
| greptime | public | numbers |
|
|
+---------------+--------------+------------+
|
|
|
|
use public;
|
|
|
|
Affected Rows: 0
|
|
|
|
drop schema abc;
|
|
|
|
Affected Rows: 0
|
|
|
|
drop schema abcde;
|
|
|
|
Affected Rows: 0
|
|
|
|
drop schema information_schema;
|
|
|
|
Error: 1001(Unsupported), Schema `information_schema` is read-only
|
|
|
|
use information_schema;
|
|
|
|
Affected Rows: 0
|
|
|
|
create table t (ts timestamp time index);
|
|
|
|
Error: 1001(Unsupported), Schema `information_schema` is read-only
|
|
|
|
drop table build_info;
|
|
|
|
Error: 1001(Unsupported), Schema `information_schema` is read-only
|
|
|
|
alter table build_info add q string;
|
|
|
|
Error: 1001(Unsupported), Schema `information_schema` is read-only
|
|
|
|
truncate table build_info;
|
|
|
|
Error: 1001(Unsupported), Schema `information_schema` is read-only
|
|
|
|
insert into build_info values ("", "", "", "", "");
|
|
|
|
Error: 1001(Unsupported), Schema `information_schema` is read-only
|
|
|
|
delete from build_info;
|
|
|
|
Error: 1001(Unsupported), Cannot change read-only table: build_info
|
|
|
|
use public;
|
|
|
|
Affected Rows: 0
|
|
|