Skip to content

Commit

Permalink
refactor related integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Dec 7, 2022
1 parent cca3f8f commit 17a42a9
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/cases/local/03_dml/case_insensitive.result
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,26 @@ SELECT
FROM
CASE_INSENSITIVE_TABLE1;

Failed to execute query, err: Server(ServerError { code: 500, msg: "Failed to create plan, query: SELECT \n * \n FROM \n CASE_INSENSITIVE_TABLE1;. Caused by: Failed to create plan, err:Failed to generate datafusion plan, err:Execution error: Table is not found, \"table:CASE_INSENSITIVE_TABLE1\"" })

SELECT
*
FROM
`case_insensitive_table1`;

ts,tsid,value1,
Timestamp(Timestamp(1)),Int64(0),Double(10.0),
Timestamp(Timestamp(2)),Int64(0),Double(20.0),
Timestamp(Timestamp(3)),Int64(0),Double(30.0),


SELECT
*
FROM
`CASE_INSENSITIVE_TABLE1`;

Failed to execute query, err: Server(ServerError { code: 500, msg: "Failed to create plan, query: SELECT \n * \n FROM \n `CASE_INSENSITIVE_TABLE1`;. Caused by: Failed to create plan, err:Failed to generate datafusion plan, err:Execution error: Table is not found, \"table:CASE_INSENSITIVE_TABLE1\"" })

SHOW CREATE TABLE case_insensitive_table1;

Table,Create Table,
Expand All @@ -47,10 +61,18 @@ String(StringBytes(b"case_insensitive_table1")),String(StringBytes(b"CREATE TABL

SHOW CREATE TABLE CASE_INSENSITIVE_TABLE1;

Failed to execute query, err: Server(ServerError { code: 500, msg: "Failed to create plan, query: SHOW CREATE TABLE CASE_INSENSITIVE_TABLE1;. Caused by: Failed to create plan, err:Table not found, table:CASE_INSENSITIVE_TABLE1" })

SHOW CREATE TABLE `case_insensitive_table1`;

Table,Create Table,
String(StringBytes(b"case_insensitive_table1")),String(StringBytes(b"CREATE TABLE `case_insensitive_table1` (`ts` timestamp NOT NULL, `tsid` uint64 NOT NULL, `value1` double, PRIMARY KEY(ts,tsid), TIMESTAMP KEY(ts)) ENGINE=Analytic WITH(arena_block_size='2097152', compaction_strategy='default', compression='ZSTD', enable_ttl='false', num_rows_per_row_group='8192', segment_duration='', storage_format='COLUMNAR', ttl='7d', update_mode='OVERWRITE', write_buffer_size='33554432')")),


SHOW CREATE TABLE `CASE_INSENSITIVE_TABLE1`;

Failed to execute query, err: Server(ServerError { code: 500, msg: "Failed to create plan, query: SHOW CREATE TABLE `CASE_INSENSITIVE_TABLE1`;. Caused by: Failed to create plan, err:Table not found, table:CASE_INSENSITIVE_TABLE1" })

DESC case_insensitive_table1;

name,type,is_primary,is_nullable,is_tag,
Expand All @@ -61,9 +83,17 @@ String(StringBytes(b"value1")),String(StringBytes(b"double")),Boolean(false),Boo

DESC CASE_INSENSITIVE_TABLE1;

Failed to execute query, err: Server(ServerError { code: 500, msg: "Failed to create plan, query: DESC CASE_INSENSITIVE_TABLE1;. Caused by: Failed to create plan, err:Table not found, table:CASE_INSENSITIVE_TABLE1" })

DESC `case_insensitive_table1`;

name,type,is_primary,is_nullable,is_tag,
String(StringBytes(b"ts")),String(StringBytes(b"timestamp")),Boolean(true),Boolean(false),Boolean(false),
String(StringBytes(b"tsid")),String(StringBytes(b"uint64")),Boolean(true),Boolean(false),Boolean(false),
String(StringBytes(b"value1")),String(StringBytes(b"double")),Boolean(false),Boolean(true),Boolean(false),


DESC `CASE_INSENSITIVE_TABLE1`;

Failed to execute query, err: Server(ServerError { code: 500, msg: "Failed to create plan, query: DESC `CASE_INSENSITIVE_TABLE1`;. Caused by: Failed to create plan, err:Table not found, table:CASE_INSENSITIVE_TABLE1" })

17 changes: 17 additions & 0 deletions tests/cases/local/03_dml/case_insensitive.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,28 @@ SELECT
FROM
CASE_INSENSITIVE_TABLE1;

SELECT
*
FROM
`case_insensitive_table1`;

SELECT
*
FROM
`CASE_INSENSITIVE_TABLE1`;

SHOW CREATE TABLE case_insensitive_table1;

SHOW CREATE TABLE CASE_INSENSITIVE_TABLE1;

SHOW CREATE TABLE `case_insensitive_table1`;

SHOW CREATE TABLE `CASE_INSENSITIVE_TABLE1`;

DESC case_insensitive_table1;

DESC CASE_INSENSITIVE_TABLE1;

DESC `case_insensitive_table1`;

DESC `CASE_INSENSITIVE_TABLE1`;

0 comments on commit 17a42a9

Please sign in to comment.