Skip to content

Commit b6cbdb7

Browse files
authored
chore: add integration test for dropping partition table (apache#870)
1 parent c9e22c5 commit b6cbdb7

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

integration_tests/cases/env/cluster/ddl/partition_table.result

+10-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ tsid,t,name,id,value,
6969
UInt64(5639753573168158607),Timestamp(1651737067000),String("ceresdb3"),Int32(0),Double(103.0),
7070

7171

72-
SELECT * from partition_table_t where name in ("ceresdb0", "ceresdb1", "ceresdb2", "ceresdb3", "ceresdb4") order by name;;
72+
SELECT * from partition_table_t where name in ("ceresdb0", "ceresdb1", "ceresdb2", "ceresdb3", "ceresdb4") order by name;
7373

7474
tsid,t,name,id,value,
7575
UInt64(7867167026748566913),Timestamp(1651737067000),String("ceresdb0"),Int32(0),Double(100.0),
@@ -79,7 +79,7 @@ UInt64(5639753573168158607),Timestamp(1651737067000),String("ceresdb3"),Int32(0)
7979
UInt64(1510325626916728375),Timestamp(1651737067000),String("ceresdb4"),Int32(0),Double(104.0),
8080

8181

82-
SELECT * from partition_table_t where name in ("ceresdb5", "ceresdb6", "ceresdb7","ceresdb8", "ceresdb9", "ceresdb10") order by name;;
82+
SELECT * from partition_table_t where name in ("ceresdb5", "ceresdb6", "ceresdb7","ceresdb8", "ceresdb9", "ceresdb10") order by name;
8383

8484
tsid,t,name,id,value,
8585
UInt64(7158007527379307345),Timestamp(1651737067000),String("ceresdb10"),Int32(0),Double(110.0),
@@ -90,3 +90,11 @@ UInt64(9923681778193615344),Timestamp(1651737067000),String("ceresdb8"),Int32(0)
9090
UInt64(4860320137932382618),Timestamp(1651737067000),String("ceresdb9"),Int32(0),Double(109.0),
9191

9292

93+
DROP TABLE IF EXISTS `partition_table_t`;
94+
95+
affected_rows: 0
96+
97+
SHOW CREATE TABLE partition_table_t;
98+
99+
Failed to execute query, err: Server(ServerError { code: 500, msg: "Failed to create plan, query: SHOW CREATE TABLE partition_table_t;. Caused by: Failed to create plan, err:Table not found, table:partition_table_t" })
100+

integration_tests/cases/env/cluster/ddl/partition_table.sql

+5-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ SELECT * from partition_table_t where name = "ceresdb2";
3636

3737
SELECT * from partition_table_t where name = "ceresdb3";
3838

39-
SELECT * from partition_table_t where name in ("ceresdb0", "ceresdb1", "ceresdb2", "ceresdb3", "ceresdb4") order by name;;
39+
SELECT * from partition_table_t where name in ("ceresdb0", "ceresdb1", "ceresdb2", "ceresdb3", "ceresdb4") order by name;
4040

41-
SELECT * from partition_table_t where name in ("ceresdb5", "ceresdb6", "ceresdb7","ceresdb8", "ceresdb9", "ceresdb10") order by name;;
41+
SELECT * from partition_table_t where name in ("ceresdb5", "ceresdb6", "ceresdb7","ceresdb8", "ceresdb9", "ceresdb10") order by name;
4242

43+
DROP TABLE IF EXISTS `partition_table_t`;
44+
45+
SHOW CREATE TABLE partition_table_t;

0 commit comments

Comments
 (0)