-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql: UPSERT causes a decoding error in collated string column #46394
Labels
A-sql-mutations
Mutation statements: UPDATE/INSERT/UPSERT/DELETE.
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-community
Originated from the community
Comments
@mrigger can you provide the output of cc @asubiotto @jordanlewis for triage. |
knz
changed the title
UPSERT causes a decoding error
sql: UPSERT causes a decoding error in collated string column
Mar 21, 2020
awoods187
added
the
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
label
Mar 21, 2020
knz
added
A-sql-mutations
Mutation statements: UPDATE/INSERT/UPSERT/DELETE.
O-community
Originated from the community
labels
Mar 21, 2020
Here is the output of
|
@rohany could you take a look at this given your encoding/decoding expertise? |
craig bot
pushed a commit
that referenced
this issue
Mar 25, 2020
46570: sql: fix bug with decoding descending collated strings r=otan a=rohany Fixes #46394. Fixes a bug where the decoding logic for collated strings would assume the collated string was always in encoded to be sorted in ascending order. Release justification: fixes a bug Release note (bug fix): Fixes a bug where operations on an index that contained a collated string in descending order would fail. Co-authored-by: Rohan Yadav <rohany@alumni.cmu.edu>
rohany
added a commit
to rohany/cockroach
that referenced
this issue
Mar 25, 2020
Fixes cockroachdb#46394. Fixes a bug where the decoding logic for collated strings would assume the collated string was always in encoded to be sorted in ascending order. Release justification: fixes a bug Release note (bug fix): Fixes a bug where operations on an index that contained a collated string in descending order would fail.
rohany
added a commit
to rohany/cockroach
that referenced
this issue
Mar 25, 2020
Fixes cockroachdb#46394. Fixes a bug where the decoding logic for collated strings would assume the collated string was always in encoded to be sorted in ascending order. Release justification: fixes a bug Release note (bug fix): Fixes a bug where operations on an index that contained a collated string in descending order would fail.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-sql-mutations
Mutation statements: UPDATE/INSERT/UPSERT/DELETE.
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-community
Originated from the community
Consider the following test case:
Unexpectedly, the
UPSERT
results in an errorerror decoding 11 bytes: did not find marker 0x12 in buffer 0x13ff00ff00ff00ff00fffe
. When, for example, dropping columnc0
, the error does not occur.I found this issue based on commit
322f83364bc0807c3147af0631cb7317c584ce43
.The text was updated successfully, but these errors were encountered: