Files
greptimedb/tests/cases/standalone/common/information_schema/tables.result
T
Weny Xu 1ba656e345 perf(catalog): batch cached metadata reads for information schema scans (#10542)
* feat(meta): support cached batch lookups for flows and views

Signed-off-by: WenyXu <wenymedia@gmail.com>

* feat(partition): batch-load cached routes for partition scans

Signed-off-by: WenyXu <wenymedia@gmail.com>

* perf(meta): bound marker reads when listing dropped tables

Signed-off-by: WenyXu <wenymedia@gmail.com>

* perf(catalog): stream information schema scans through metadata caches

Signed-off-by: WenyXu <wenymedia@gmail.com>

* fix(catalog): gate the recycle bin metadata accessor

Signed-off-by: WenyXu <wenymedia@gmail.com>

* fix(meta): coordinate schema, view, and flow cache updates

Signed-off-by: WenyXu <wenymedia@gmail.com>

* perf(operator): bound concurrent flow lookups for multi-table writes

Signed-off-by: WenyXu <wenymedia@gmail.com>

* refactor(meta): reuse cache key and batch value conversions

Signed-off-by: WenyXu <wenymedia@gmail.com>

* refactor(catalog): extract metadata loaders from information schema scans

Signed-off-by: WenyXu <wenymedia@gmail.com>

* fix(catalog): remove unused scan dependencies

Signed-off-by: WenyXu <wenymedia@gmail.com>

* chore: align metadata cache visibility and API documentation

Signed-off-by: WenyXu <wenymedia@gmail.com>

* refactor(meta): share physical routes across logical table lookups

Signed-off-by: WenyXu <wenymedia@gmail.com>

* refactor(catalog): share metadata loaders across scan paths

Signed-off-by: WenyXu <wenymedia@gmail.com>

* test: verify cache batch reads and information schema options

Signed-off-by: WenyXu <wenymedia@gmail.com>

* test(sqlness): order information schema table rows before comparison

Signed-off-by: WenyXu <wenymedia@gmail.com>

* fix(catalog): finish partition lookups before loading the next table batch

Signed-off-by: WenyXu <wenymedia@gmail.com>

* fix(meta): load all source table flows on a cold lookup after create

Signed-off-by: WenyXu <wenymedia@gmail.com>

---------

Signed-off-by: WenyXu <wenymedia@gmail.com>
2026-11-20 04:58:15 +00:00

84 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')
order by table_catalog, table_schema, table_name;
+---------------+--------------+------------+
| 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