mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-07 05:42:57 +00:00
* feat: add table id and engine to informatin_schema.TABLES * Update src/catalog/src/information_schema/tables.rs Co-authored-by: Yingwen <realevenyag@gmail.com> * chore: change table_engine to engine * test: update sqlness for information schema * test: update information_schema test in frontend::tests::instance_test.rs * fix: github action sqlness information_schema test fail * test: ignore table_id in information_schema * test: support distribute and standalone have different output --------- Co-authored-by: Yingwen <realevenyag@gmail.com>
49 lines
966 B
Plaintext
49 lines
966 B
Plaintext
create
|
|
database my_db;
|
|
|
|
Affected Rows: 1
|
|
|
|
use
|
|
my_db;
|
|
|
|
++
|
|
++
|
|
|
|
create table foo
|
|
(
|
|
ts bigint time index
|
|
);
|
|
|
|
Affected Rows: 0
|
|
|
|
select table_name
|
|
from information_schema.tables
|
|
where table_schema = 'my_db'
|
|
order by table_name;
|
|
|
|
+------------+
|
|
| table_name |
|
|
+------------+
|
|
| foo |
|
|
+------------+
|
|
|
|
select table_catalog, table_schema, table_name, table_type, engine
|
|
from information_schema.tables
|
|
where table_catalog = 'greptime'
|
|
and table_schema != 'public'
|
|
order by table_schema, table_name;
|
|
|
|
+---------------+--------------------+------------+------------+--------+
|
|
| table_catalog | table_schema | table_name | table_type | engine |
|
|
+---------------+--------------------+------------+------------+--------+
|
|
| greptime | information_schema | tables | VIEW | |
|
|
| greptime | my_db | foo | BASE TABLE | mito |
|
|
+---------------+--------------------+------------+------------+--------+
|
|
|
|
use
|
|
public;
|
|
|
|
++
|
|
++
|
|
|