fix: resolve catalog and schema in dist planner (#1891)

* try resolve catalog and schema

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* fix clippy

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* upload sqlness case

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* fix information schema case

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* fix unnamed table name

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* fix clippy

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2023-07-06 16:08:44 +08:00
committed by GitHub
parent 979400ac58
commit 9153191819
7 changed files with 120 additions and 6 deletions

View File

@@ -0,0 +1,39 @@
create database upper_case_table_name;
Affected Rows: 1
use upper_case_table_name;
++
++
create table system_Metric(ts timestamp time index);
Affected Rows: 0
insert into system_Metric values (0), (1);
Affected Rows: 2
select * from system_Metric;
Error: 3000(PlanQuery), Error during planning: Table not found: greptime.upper_case_table_name.system_metric
select * from "system_Metric";
+-------------------------+
| ts |
+-------------------------+
| 1970-01-01T00:00:00 |
| 1970-01-01T00:00:00.001 |
+-------------------------+
drop table system_Metric;
Affected Rows: 1
use public;
++
++

View File

@@ -0,0 +1,15 @@
create database upper_case_table_name;
use upper_case_table_name;
create table system_Metric(ts timestamp time index);
insert into system_Metric values (0), (1);
select * from system_Metric;
select * from "system_Metric";
drop table system_Metric;
use public;