Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions tests/cases/standalone/aggregate/distinct.result
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
CREATE SCHEMA test_distinct;

Affected Rows: 1

USE test_distinct;

++
++

CREATE TABLE test (a INTEGER, b INTEGER, t BIGINT TIME INDEX);

Affected Rows: 0
Expand Down
4 changes: 0 additions & 4 deletions tests/cases/standalone/aggregate/distinct.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
CREATE SCHEMA test_distinct;

USE test_distinct;

CREATE TABLE test (a INTEGER, b INTEGER, t BIGINT TIME INDEX);

INSERT INTO test VALUES (11, 22, 1), (13, 22, 2), (11, 21, 3), (11, 22, 4);
Expand Down
5 changes: 0 additions & 5 deletions tests/cases/standalone/aggregate/sum.result
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
USE public;

++
++

SELECT SUM(number) FROM numbers;

+---------------------+
Expand Down
2 changes: 0 additions & 2 deletions tests/cases/standalone/aggregate/sum.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
USE public;

SELECT SUM(number) FROM numbers;

SELECT SUM(1) FROM numbers;
Expand Down
9 changes: 0 additions & 9 deletions tests/cases/standalone/alter/add_col.result
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
CREATE SCHEMA test_add_col;

Affected Rows: 1

USE test_add_col;

++
++

CREATE TABLE test(i INTEGER, j BIGINT TIME INDEX);

Affected Rows: 0
Expand Down
4 changes: 0 additions & 4 deletions tests/cases/standalone/alter/add_col.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
CREATE SCHEMA test_add_col;

USE test_add_col;

CREATE TABLE test(i INTEGER, j BIGINT TIME INDEX);

INSERT INTO test VALUES (1, 1), (2, 2);
Expand Down
15 changes: 3 additions & 12 deletions tests/cases/standalone/alter/rename_table.result
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
CREATE SCHEMA test_rename_table;

Affected Rows: 1

USE test_rename_table;

++
++

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

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

SELECT * FROM t;

Error: 3000(PlanQuery), Error during planning: table 'greptime.test_rename_table.t' not found
Error: 3000(PlanQuery), Error during planning: table 'greptime.public.t' not found

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

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

ALTER TABLE new_table RENAME new_table;

Error: 1004(InvalidArguments), Table already exists: greptime.test_rename_table.new_table
Error: 1004(InvalidArguments), Table already exists: greptime.public.new_table

ALTER TABLE new_table RENAME t;

Error: 1004(InvalidArguments), Table already exists: greptime.test_rename_table.t
Error: 1004(InvalidArguments), Table already exists: greptime.public.t

DROP TABLE t;

Expand Down
4 changes: 0 additions & 4 deletions tests/cases/standalone/alter/rename_table.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
CREATE SCHEMA test_rename_table;

USE test_rename_table;

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

DESC TABLE t;
Expand Down
5 changes: 5 additions & 0 deletions tests/cases/standalone/catalog/schema.result
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,8 @@ SELECT * FROM test_public_schema.hello;

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

USE public;

++
++

2 changes: 2 additions & 0 deletions tests/cases/standalone/catalog/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ SHOW TABLES FROM public;
DROP SCHEMA test_public_schema;

SELECT * FROM test_public_schema.hello;

USE public;
9 changes: 0 additions & 9 deletions tests/cases/standalone/insert/insert_invalid.result
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
CREATE SCHEMA insert_invalid;

Affected Rows: 1

USE insert_invalid;

++
++

CREATE TABLE strings(i STRING, t BIGINT, time index(t));

Affected Rows: 0
Expand Down
4 changes: 0 additions & 4 deletions tests/cases/standalone/insert/insert_invalid.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
CREATE SCHEMA insert_invalid;

USE insert_invalid;

CREATE TABLE strings(i STRING, t BIGINT, time index(t));

INSERT INTO strings VALUES ('â‚(', 1);
Expand Down
5 changes: 0 additions & 5 deletions tests/cases/standalone/limit/limit.result
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
USE public;

++
++

SELECT * FROM (SELECT SUM(number) FROM numbers LIMIT 100000000000) LIMIT 0;

++
Expand Down
2 changes: 0 additions & 2 deletions tests/cases/standalone/limit/limit.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
USE public;

SELECT * FROM (SELECT SUM(number) FROM numbers LIMIT 100000000000) LIMIT 0;

EXPLAIN SELECT * FROM (SELECT SUM(number) FROM numbers LIMIT 100000000000) LIMIT 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
CREATE SCHEMA order_variable_size_payload;

Affected Rows: 1

USE order_variable_size_payload;

++
++

create table t0 (c0 varchar, t BIGINT TIME INDEX);

Affected Rows: 0
Expand Down
4 changes: 0 additions & 4 deletions tests/cases/standalone/order/order_variable_size_payload.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
CREATE SCHEMA order_variable_size_payload;

USE order_variable_size_payload;

create table t0 (c0 varchar, t BIGINT TIME INDEX);

insert into t0 values ('a', 1), (NULL,2), (NULL, 3), (NULL, 4), (NULL, 5), (NULL,6), (NULL,7);
Expand Down