Skip to content

Fix 26.9 upgrade check - #121590

Merged
clickhouse-gh[bot] merged 2 commits into
ClickHouse:26.9from
azat:26.9-fix-upgrade-check
Sep 22, 2026
Merged

clickhouse-gh[bot] merged 2 commits into
ClickHouse:26.9from
azat:26.9-fix-upgrade-check

Conversation

@azat

@azat azat commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Version info

  • Merged into: 26.9.2.12

05211_backup_log_zero_byte_data_file built its zero-byte column from
countResample(10, 5, 1), the parameterisation this branch rejects, so its first
CREATE TABLE now fails with ARGUMENT_OUT_OF_BOUND and Fast test broke on the
merge with master.

An array column whose every value is empty leaves its element stream empty too:
100 rows put 0 bytes in s.bin next to 44 in s.size0.bin, on Log and on TinyLog.
That is the same zero-size backup entry the restore path has to recreate, and it
needs no aggregate function at all.

Three arms went with the construction they required. They exercised
StorageLog::backupData's emptiness predicate, which looks at the first data
file, and an array column's first stream is its sizes stream, which always holds
bytes. After this branch no supported input leaves that first file empty while
the table holds data: a Nothing-typed column cannot be stored
(StorageFactory.cpp checkAllTypesAreAllowedInTable) and Log implements no ADD
COLUMN, so an aggregate state was the only single-stream column that could
serialize to nothing.

What is left covers BackupImpl::copyFileToDisk, measured both ways: the three
restore arms lose their read line to FILE_DOESNT_EXIST on a binary without that
fix, and the whole test passes 50/50 with randomization on one that has it.

(cherry picked from commit faf29df)
@clickhouse-gh

clickhouse-gh Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [f17c76f]

Summary: ✅

The printed type (quantile('0.5')) is not re-parseable on this branch, so a
table left behind cannot be reattached and the Upgrade check reports it.
Use toTypeName(defaultValueOfTypeName(...)) instead: same parsing path, same
error codes, nothing persisted.

Refs: ClickHouse#121506

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@azat azat changed the title Fix 26.9 upgrade check due to #119728 that broke 05211_backup_log_zero_byte_data_file Fix 26.9 upgrade check Sep 22, 2026
@clickhouse-gh
clickhouse-gh Bot merged commit 4d46c03 into ClickHouse:26.9 Sep 22, 2026
40 of 41 checks passed
@azat
azat deleted the 26.9-fix-upgrade-check branch September 22, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants