Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
indexrec: fix internal error with inverted indexes
A bug was introduced in #108576 in code that compares index columns of an existing index and a hypothetical index. Prior to this commit, this logic only checked that the hypothetical index column was an inverted column (the last explicitly indexed column in an inverted index) before fetching the inverted source column ordinal for both the hypothetical and existing index column. When the existing index column was not an inverted column, and internal error would occur. This commit fixes the bug by checking that both the hypothetical and existing index columns are inverted columns before fetching the source column ordinals. There is no release note because this bug does not exist in any releases. Fixes #109974 Release note: None
- Loading branch information
Showing
2 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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