Skip to content

Commit 6f386a3

Browse files
Make 05137_text_index_replicated_database_alter deterministic across CI flavors
The test reference expected the per-replica DDL status row from `CREATE TABLE` in a `Replicated` database, but the DBReplicated flavor sets `distributed_ddl_output_mode = none` (tests/config/users.d/database_replicated.xml), which suppresses that row, so the test failed there with empty output. Force `--distributed_ddl_output_mode=none` on every client call in the test and empty the reference, matching the convention used by other `Replicated` database tests. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent ec80b50 commit 6f386a3

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
shard1 replica1 OK 0 0

tests/queries/0_stateless/05137_text_index_replicated_database_alter.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
55
# shellcheck source=../shell_config.sh
66
. "$CUR_DIR"/../shell_config.sh
77

8-
CLICKHOUSE_CLIENT="${CLICKHOUSE_CLIENT} --database_replicated_allow_explicit_uuid=1"
8+
# `distributed_ddl_output_mode=none`: suppress the per-replica DDL status rows, so the output
9+
# does not depend on the CI flavor (the DBReplicated flavor sets the setting to `none`).
10+
CLICKHOUSE_CLIENT="${CLICKHOUSE_CLIENT} --database_replicated_allow_explicit_uuid=1 --distributed_ddl_output_mode=none"
911
db="${CLICKHOUSE_DATABASE}_05137"
1012

1113
cleanup()

0 commit comments

Comments
 (0)