Skip to content

Commit 184ca78

Browse files
revert: removed all "USE"s in sqlness tests introduced in #922 (#938)
1 parent ebbf1e4 commit 184ca78

File tree

16 files changed

+10
-82
lines changed

16 files changed

+10
-82
lines changed

tests/cases/standalone/aggregate/distinct.result

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
CREATE SCHEMA test_distinct;
2-
3-
Affected Rows: 1
4-
5-
USE test_distinct;
6-
7-
++
8-
++
9-
101
CREATE TABLE test (a INTEGER, b INTEGER, t BIGINT TIME INDEX);
112

123
Affected Rows: 0

tests/cases/standalone/aggregate/distinct.sql

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
CREATE SCHEMA test_distinct;
2-
3-
USE test_distinct;
4-
51
CREATE TABLE test (a INTEGER, b INTEGER, t BIGINT TIME INDEX);
62

73
INSERT INTO test VALUES (11, 22, 1), (13, 22, 2), (11, 21, 3), (11, 22, 4);

tests/cases/standalone/aggregate/sum.result

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
USE public;
2-
3-
++
4-
++
5-
61
SELECT SUM(number) FROM numbers;
72

83
+---------------------+

tests/cases/standalone/aggregate/sum.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
USE public;
2-
31
SELECT SUM(number) FROM numbers;
42

53
SELECT SUM(1) FROM numbers;

tests/cases/standalone/alter/add_col.result

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
CREATE SCHEMA test_add_col;
2-
3-
Affected Rows: 1
4-
5-
USE test_add_col;
6-
7-
++
8-
++
9-
101
CREATE TABLE test(i INTEGER, j BIGINT TIME INDEX);
112

123
Affected Rows: 0

tests/cases/standalone/alter/add_col.sql

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
CREATE SCHEMA test_add_col;
2-
3-
USE test_add_col;
4-
51
CREATE TABLE test(i INTEGER, j BIGINT TIME INDEX);
62

73
INSERT INTO test VALUES (1, 1), (2, 2);

tests/cases/standalone/alter/rename_table.result

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
CREATE SCHEMA test_rename_table;
2-
3-
Affected Rows: 1
4-
5-
USE test_rename_table;
6-
7-
++
8-
++
9-
101
CREATE TABLE t(i INTEGER, j BIGINT TIME INDEX);
112

123
Affected Rows: 0
@@ -44,7 +35,7 @@ Error: 4001(TableNotFound), Table not found: t
4435

4536
SELECT * FROM t;
4637

47-
Error: 3000(PlanQuery), Error during planning: table 'greptime.test_rename_table.t' not found
38+
Error: 3000(PlanQuery), Error during planning: table 'greptime.public.t' not found
4839

4940
CREATE TABLE t(i INTEGER, j BIGINT TIME INDEX);
5041

@@ -71,11 +62,11 @@ SELECT * FROM new_table;
7162

7263
ALTER TABLE new_table RENAME new_table;
7364

74-
Error: 1004(InvalidArguments), Table already exists: greptime.test_rename_table.new_table
65+
Error: 1004(InvalidArguments), Table already exists: greptime.public.new_table
7566

7667
ALTER TABLE new_table RENAME t;
7768

78-
Error: 1004(InvalidArguments), Table already exists: greptime.test_rename_table.t
69+
Error: 1004(InvalidArguments), Table already exists: greptime.public.t
7970

8071
DROP TABLE t;
8172

tests/cases/standalone/alter/rename_table.sql

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
CREATE SCHEMA test_rename_table;
2-
3-
USE test_rename_table;
4-
51
CREATE TABLE t(i INTEGER, j BIGINT TIME INDEX);
62

73
DESC TABLE t;

tests/cases/standalone/catalog/schema.result

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,8 @@ SELECT * FROM test_public_schema.hello;
8686

8787
Error: 3000(PlanQuery), Error during planning: table 'greptime.test_public_schema.hello' not found
8888

89+
USE public;
90+
91+
++
92+
++
93+

tests/cases/standalone/catalog/schema.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ SHOW TABLES FROM public;
2929
DROP SCHEMA test_public_schema;
3030

3131
SELECT * FROM test_public_schema.hello;
32+
33+
USE public;

0 commit comments

Comments
 (0)