fix: canonicalize catalog and schema names (#3600)

This commit is contained in:
dennis zhuang
2024-03-27 23:40:15 -07:00
committed by GitHub
parent 5d7ce08358
commit e3b37ee2c9
10 changed files with 79 additions and 39 deletions

View File

@@ -674,6 +674,27 @@ DESC TABLE GREPTIME_REGION_PEERS;
| down_seconds | Int64 | | YES | | FIELD |
+--------------+--------+-----+------+---------+---------------+
USE INFORMATION_SCHEMA;
Affected Rows: 0
DESC COLUMNS;
+----------------+--------+-----+------+---------+---------------+
| Column | Type | Key | Null | Default | Semantic Type |
+----------------+--------+-----+------+---------+---------------+
| table_catalog | String | | NO | | FIELD |
| table_schema | String | | NO | | FIELD |
| table_name | String | | NO | | FIELD |
| column_name | String | | NO | | FIELD |
| data_type | String | | NO | | FIELD |
| semantic_type | String | | NO | | FIELD |
| column_default | String | | YES | | FIELD |
| is_nullable | String | | NO | | FIELD |
| column_type | String | | NO | | FIELD |
| column_comment | String | | YES | | FIELD |
+----------------+--------+-----+------+---------+---------------+
drop table my_db.foo;
Error: 4001(TableNotFound), Table not found: greptime.my_db.foo

View File

@@ -119,6 +119,10 @@ DESC TABLE RUNTIME_METRICS;
DESC TABLE GREPTIME_REGION_PEERS;
USE INFORMATION_SCHEMA;
DESC COLUMNS;
drop table my_db.foo;
use public;