mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-07 05:42:57 +00:00
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:
@@ -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;
|
||||
|
||||
++
|
||||
++
|
||||
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user