Repository navigation
Fix build in the 26.6 backport of #111803 - #116104
Merged
CurtizJ merged 1 commit intoAug 24, 2026
Merged
Conversation
DictionarySparseIndex::getToken does not exist on this branch. It was added by 5513d53 ("Decompose tokens in sparse index of text index into chars and bit-packed offsets"), which is not an ancestor of 26.6, so the new gtest from the backport does not compile here. On master getToken returns assert_cast<const ColumnString &>(**tokens_column).getDataAt(idx) for the ColumnPtr arm, and the bit-packed arm only exists with the commit above. On this branch deserializeHeader builds the tokens column through deserializeTokensRaw, which returns a ColumnString, so the ColumnPtr arm is the only reachable one and reading through the tokens column is equivalent. The same idiom is already used twice in this file, for "alpha" and "beta".
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):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Fixes the build of the 26.6 backport #115793, targeted at its head branch so it can be merged directly.
DictionarySparseIndex::getTokendoes not exist on 26.6. It was added by 5513d53 ("Decompose tokens in sparse index of text index into chars and bit-packed offsets", 2026-07-05), which is not an ancestor of 26.6. Only the new gtest from the backport references it, so thesrc/half of #115793 is fine and the single-Werrorfailure is:The fix reads the token through the tokens column instead. This is behavior-preserving here: on master
getTokenreturnsassert_cast<const ColumnString &>(**tokens_column).getDataAt(idx)for theColumnPtrarm, and the bit-packed arm only exists with the commit above. On 26.6deserializeHeaderbuilds the tokens column throughdeserializeTokensRaw, which returns aColumnString, so theColumnPtrarm is the only reachable one. The same idiom is already used twice in this file, foralphaandbeta, and both lines predate the backport. The assertion still covers the token round-trip through the V0_Initial header.Verified by compiling the failing translation unit with the command recorded in
compile_commands.json(clang++-21,-Werror): before the patch it fails with the exact CI error at 3700:46, after it there are 0 errors and 0 warnings.No second missing symbol is hiding behind the first error. All three failing builds report exactly one
error:and oneFAILED:target, and the ninja run kept going past it to[16660/16696], so the other six touchedsrc/files compiled.