From 8ec472c77163ce51bdffd031acda5b539170f72f Mon Sep 17 00:00:00 2001 From: Rene Cannao Date: Sat, 21 Mar 2026 14:51:56 +0000 Subject: [PATCH] Fix ClickHouse test: update expected row count after MergeTree fix After updating to new MergeTree syntax, the INSERT with NULL values now succeeds, resulting in 3 rows instead of 2. --- test/tap/tests/test_clickhouse_server-t.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tap/tests/test_clickhouse_server-t.cpp b/test/tap/tests/test_clickhouse_server-t.cpp index dbf7bba2e..10a38b807 100644 --- a/test/tap/tests/test_clickhouse_server-t.cpp +++ b/test/tap/tests/test_clickhouse_server-t.cpp @@ -295,7 +295,7 @@ std::vector queries_set2 { std::make_tuple("INSERT INTO table2 SELECT 1,'2022-06-23', 1, 2, 3, 4, 5, 6, 7, 'hello', 'world'", 1148, -1), // incorrect number of values std::make_tuple("INSERT INTO table2 SELECT 1,'2022-06-23', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL", 0, -1), // col0 can't be null, but ClickHouse may substitute default std::make_tuple("INSERT INTO table2 SELECT 1,'2022-06-23', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL", 0, -1), - std::make_tuple("SELECT * FROM table2 ORDER BY CounterID", 0, 2), + std::make_tuple("SELECT * FROM table2 ORDER BY CounterID", 0, 3), std::make_tuple("DESC table2", 0, 12), std::make_tuple("SHOW COLUMNS FROM table2", 0, 12), };