Repository navigation
Fix 26.9 upgrade check - #121590
Merged
Merged
Fix 26.9 upgrade check#121590
Conversation
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)
This was referenced Sep 22, 2026
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]>
This was referenced Sep 22, 2026
This was referenced Sep 22, 2026
This was referenced Sep 23, 2026
This was referenced Sep 23, 2026
This was referenced Sep 24, 2026
This was referenced Sep 26, 2026
This was referenced Sep 27, 2026
1 task
This was referenced Oct 3, 2026
This was referenced Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Version info
26.9.2.12