Skip to content

Commit f036b63

Browse files
committed
chore(query): fix tests
1 parent abf8bb6 commit f036b63

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/query/service/tests/it/servers/http/clickhouse_handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ async fn test_insert_format_ndjson() -> PoemResult<()> {
270270
let (status, body) = server
271271
.post("insert into table t1 format JSONEachRow", &body)
272272
.await;
273-
assert_eq!(status, StatusCode::BAD_REQUEST);
273+
assert_eq!(status, StatusCode::INTERNAL_SERVER_ERROR);
274274
assert_error!(body, "column a");
275275
}
276276
Ok(())

tests/suites/0_stateless/14_clickhouse_http_handler/14_0007_http_clickhouse_input_format_diagnostic.result

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,42 @@ Code: 4000, displayText = invalid data (Expected to have char '.)
22
Error occurs at row: 1:
33
Column: 0, Name: a, Type: Timestamp, Parsed text: "<SINGLE QUOTE>19892-02-0"
44
ERROR: DateTime must be in YYYY-MM-DD hh:mm:ss format.
5-
.
5+
(while in processor thread 0).
66

77
Code: 1046, displayText = Parse csv error at line 0
88
Error occurs at row: 0:
99
Column: 0, Name: a, Type: Timestamp, Parsed text: "<SINGLE QUOTE>2023-04-08 01:01:01<SINGLE QUOTE>"
1010
Column: 1, Name: b, Type: String, Parsed text: "<DOUBLE QUOTE>Hello<DOUBLE QUOTE>"
1111
Column: 2, Name: c, Type: Int32, Parsed text: "12345678"
1212
Error: There is no line feed. "," found instead.
13-
.
13+
(while in processor thread 0).
1414

1515
Code: 1046, displayText = Parse csv error at line 0
1616
Error occurs at row: 0:
1717
Column: 0, Name: a, Type: Timestamp, Parsed text: "<SINGLE QUOTE>2023-04-08 01:01:01<SINGLE QUOTE>"
1818
Column: 1, Name: b, Type: String, Parsed text: "<EMPTY>"
1919
Column: 2, Name: c, Type: Int32, Parsed text: "123"
2020
Error: There is no line feed. "H" found instead.
21-
.
21+
(while in processor thread 0).
2222

2323
Code: 1046, displayText = Cannot parse value:'2023-04-0 to Date type, cause: input contains invalid characters
2424
Error occurs at row: 0:
2525
Column: 0, Name: a, Type: Timestamp, Parsed text: "<SINGLE QUOTE>2023-04-0"
2626
ERROR: DateTime must be in YYYY-MM-DD hh:mm:ss format.
27-
.
27+
(while in processor thread 0).
2828

2929
Code: 1046, displayText = Parse Tsv error at line 1
3030
Error occurs at row: 1:
3131
Column: 0, Name: a, Type: Timestamp, Parsed text: "1989-02-03 15:23:23"
3232
Column: 1, Name: b, Type: String, Parsed text: "<DOUBLE QUOTE>World<DOUBLE QUOTE>"
3333
Column: 2, Name: c, Type: Int32, Parsed text: "123456"
3434
Error: There is no line feed. "1" found instead.
35-
.
35+
(while in processor thread 0).
3636

3737
Code: 1046, displayText = Parse Tsv error at line 0
3838
Error occurs at row: 0:
3939
Column: 0, Name: a, Type: Timestamp, Parsed text: "2023-04-08 01:01:01"
4040
Column: 1, Name: b, Type: String, Parsed text: "<EMPTY>"
4141
Column: 2, Name: c, Type: Int32, Parsed text: "123"
4242
Error: There is no line feed. "H" found instead.
43-
.
43+
(while in processor thread 0).

0 commit comments

Comments
 (0)