Skip to content

Commit 79327da

Browse files
author
aleksei.p
committed
simplify a unit-test
1 parent d21b563 commit 79327da

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
@@ -409,20 +409,12 @@ fn parse_create_table_with_nested_data_types() {
409409

410410
#[test]
411411
fn parse_create_table_with_primary_key() {
412-
match clickhouse_and_generic().one_statement_parses_to(
413-
concat!(
414-
r#"CREATE TABLE db.table (`i` Int, `k` Int)"#,
415-
" ENGINE=SharedMergeTree('/clickhouse/tables/{uuid}/{shard}', '{replica}')",
416-
" PRIMARY KEY tuple(i)",
417-
" ORDER BY tuple(i)",
418-
),
419-
concat!(
420-
r#"CREATE TABLE db.table (`i` INT, `k` INT)"#,
421-
" ENGINE=SharedMergeTree('/clickhouse/tables/{uuid}/{shard}', '{replica}')",
422-
" PRIMARY KEY tuple(i)",
423-
" ORDER BY tuple(i)",
424-
),
425-
) {
412+
match clickhouse_and_generic().verified_stmt(concat!(
413+
r#"CREATE TABLE db.table (`i` INT, `k` INT)"#,
414+
" ENGINE=SharedMergeTree('/clickhouse/tables/{uuid}/{shard}', '{replica}')",
415+
" PRIMARY KEY tuple(i)",
416+
" ORDER BY tuple(i)",
417+
)) {
426418
Statement::CreateTable {
427419
name,
428420
columns,

0 commit comments

Comments
 (0)