Files
greptimedb/tests/cases/standalone/common/system/information_schema.result
Hao e4cd08c750 feat: add table id and engine to information_schema.TABLES (#1407)
* 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>
2023-04-19 10:52:02 +08:00

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;
++
++