Skip to content

Commit 77f781b

Browse files
author
aleksei.p
committed
simplify a unit-test
1 parent 12faee5 commit 77f781b

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

tests/sqlparser_clickhouse.rs

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -219,20 +219,12 @@ fn parse_create_table() {
219219

220220
#[test]
221221
fn parse_create_table_with_primary_key() {
222-
match clickhouse_and_generic().one_statement_parses_to(
223-
concat!(
224-
r#"CREATE TABLE db.table (`i` Int, `k` Int)"#,
225-
" ENGINE=SharedMergeTree('/clickhouse/tables/{uuid}/{shard}', '{replica}')",
226-
" PRIMARY KEY tuple(i)",
227-
" ORDER BY tuple(i)",
228-
),
229-
concat!(
230-
r#"CREATE TABLE db.table (`i` INT, `k` INT)"#,
231-
" ENGINE=SharedMergeTree('/clickhouse/tables/{uuid}/{shard}', '{replica}')",
232-
" PRIMARY KEY tuple(i)",
233-
" ORDER BY tuple(i)",
234-
),
235-
) {
222+
match clickhouse_and_generic().verified_stmt(concat!(
223+
r#"CREATE TABLE db.table (`i` INT, `k` INT)"#,
224+
" ENGINE=SharedMergeTree('/clickhouse/tables/{uuid}/{shard}', '{replica}')",
225+
" PRIMARY KEY tuple(i)",
226+
" ORDER BY tuple(i)",
227+
)) {
236228
Statement::CreateTable {
237229
name,
238230
columns,

0 commit comments

Comments
 (0)