-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve catalog and schema in dist planner (#1891)
* try resolve catalog and schema Signed-off-by: Ruihang Xia <[email protected]> * fix clippy Signed-off-by: Ruihang Xia <[email protected]> * upload sqlness case Signed-off-by: Ruihang Xia <[email protected]> * fix information schema case Signed-off-by: Ruihang Xia <[email protected]> * fix unnamed table name Signed-off-by: Ruihang Xia <[email protected]> * fix clippy Signed-off-by: Ruihang Xia <[email protected]> --------- Signed-off-by: Ruihang Xia <[email protected]>
- Loading branch information
Showing
7 changed files
with
120 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
tests/cases/standalone/common/create/upper_case_table_name.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
|
||
++ | ||
++ | ||
|
15 changes: 15 additions & 0 deletions
15
tests/cases/standalone/common/create/upper_case_table_name.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |