mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-09-12 08:22:16 +00:00
* test: add recent sqlness compat cases Signed-off-by: discord9 <discord9@163.com> * test: add more sqlness compat cases Signed-off-by: discord9 <discord9@163.com> --------- Signed-off-by: discord9 <discord9@163.com>
35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
SELECT table_schema, table_name, table_type, engine
|
|
FROM information_schema.tables
|
|
WHERE table_name = 't_information_schema_old_table'
|
|
ORDER BY table_schema;
|
|
|
|
+------------------------------+--------------------------------+------------+--------+
|
|
| table_schema | table_name | table_type | engine |
|
|
+------------------------------+--------------------------------+------------+--------+
|
|
| information_schema_old_table | t_information_schema_old_table | BASE TABLE | mito |
|
|
+------------------------------+--------------------------------+------------+--------+
|
|
|
|
SELECT column_name, data_type, semantic_type
|
|
FROM information_schema.columns
|
|
WHERE table_name = 't_information_schema_old_table'
|
|
ORDER BY table_schema, column_name;
|
|
|
|
+-------------+--------------+---------------+
|
|
| column_name | data_type | semantic_type |
|
|
+-------------+--------------+---------------+
|
|
| code | int | FIELD |
|
|
| host | string | TAG |
|
|
| ts | timestamp(3) | TIMESTAMP |
|
|
| val | double | FIELD |
|
|
+-------------+--------------+---------------+
|
|
|
|
SELECT count(*)
|
|
FROM information_schema.table_semantics
|
|
WHERE table_name = 't_information_schema_old_table';
|
|
|
|
+----------+
|
|
| count(*) |
|
|
+----------+
|
|
| 0 |
|
|
+----------+
|