Files
greptimedb/tests/cases/standalone/common/system/information_schema.sql
Ning Sun 6e1bb9e458 feat: add support for information_schema.columns (#1500)
* feat: add support for information_schema.columns

* feat: remove information_schema from its view

* Update src/catalog/src/information_schema.rs

Co-authored-by: LFC <bayinamine@gmail.com>

* fix: error on table data type

* test: correct sqlness test for information schema

* test: add information_schema.columns sqlness tests

---------

Co-authored-by: LFC <bayinamine@gmail.com>
2023-05-04 14:29:38 +08:00

31 lines
597 B
SQL

create
database my_db;
use
my_db;
create table foo
(
ts bigint time index
);
select table_name
from information_schema.tables
where table_schema = 'my_db'
order by table_name;
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;
select table_catalog, table_schema, table_name, column_name, data_type
from information_schema.columns
where table_catalog = 'greptime'
and table_schema != 'public'
order by table_schema, table_name;
use
public;