Repository navigation
Conversation
…ales When a DECIMAL value has more scale than its column, coerceBytes rescales the value. The rescale path decoded the bytes in ascending order and encoded the result in ascending order. It ignored both the actual and the expected sort order. For a DESC column the result was a wrong value. When the decoded value rounded to zero, the result was the one-byte ascending zero. A later read of that byte in descending order went past the end of the array. The rescale path now decodes in the actual sort order and encodes in the expected sort order. The path without a rescale does not change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Self-review (Claude Code, pr-review-toolkit) — Copilot could not review this PR because of a review quota limit, so this is an automated self-review in its place. Suggestions
Strengths
Recommendation: merge after nits 🤖 Generated with Claude Code |
Contributor
Author
|
Response to the self-review (Claude Code):
No code change is needed for this review. |
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.
LongViewIndexEnabledBaseRowKeyMatcherITfails at random with an array index error when a random view constant for a descending DECIMAL column has more scale than the column and rounds to zero.When a DECIMAL value has more scale than its column, the coerce rescales it. The rescale decoded and encoded the value in ascending order, whatever the actual and expected sort orders were. A descending value therefore became a wrong value, and a value that rounded to zero became an ascending zero that a later descending read could not parse.
The rescale now decodes in the actual sort order and encodes in the expected sort order. The path without a rescale does not change.
🤖 Generated with Claude Code