-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add tailing separator to prefix (#4078)
* fix: add tailing separator to prefix Signed-off-by: Ruihang Xia <[email protected]> * project select result Signed-off-by: Ruihang Xia <[email protected]> --------- Signed-off-by: Ruihang Xia <[email protected]>
- Loading branch information
Showing
7 changed files
with
115 additions
and
28 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
46 changes: 46 additions & 0 deletions
46
tests/cases/standalone/common/information_schema/tables.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,46 @@ | ||
create schema abc; | ||
|
||
Affected Rows: 1 | ||
|
||
use abc; | ||
|
||
Affected Rows: 0 | ||
|
||
create table t (ts timestamp time index); | ||
|
||
Affected Rows: 0 | ||
|
||
create schema abcde; | ||
|
||
Affected Rows: 1 | ||
|
||
use abcde; | ||
|
||
Affected Rows: 0 | ||
|
||
create table t (ts timestamp time index); | ||
|
||
Affected Rows: 0 | ||
|
||
select table_catalog, table_schema, table_name from information_schema.tables where table_schema != 'information_schema'; | ||
|
||
+---------------+--------------+------------+ | ||
| table_catalog | table_schema | table_name | | ||
+---------------+--------------+------------+ | ||
| greptime | abc | t | | ||
| greptime | abcde | t | | ||
| greptime | public | numbers | | ||
+---------------+--------------+------------+ | ||
|
||
use public; | ||
|
||
Affected Rows: 0 | ||
|
||
drop schema abc; | ||
|
||
Affected Rows: 0 | ||
|
||
drop schema abcde; | ||
|
||
Affected Rows: 0 | ||
|
19 changes: 19 additions & 0 deletions
19
tests/cases/standalone/common/information_schema/tables.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,19 @@ | ||
create schema abc; | ||
|
||
use abc; | ||
|
||
create table t (ts timestamp time index); | ||
|
||
create schema abcde; | ||
|
||
use abcde; | ||
|
||
create table t (ts timestamp time index); | ||
|
||
select table_catalog, table_schema, table_name from information_schema.tables where table_schema != 'information_schema'; | ||
|
||
use public; | ||
|
||
drop schema abc; | ||
|
||
drop schema abcde; |