Skip to content
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

[fix](decimalv2) update set with a decimal literal overflowed make be crash #30653

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

cambyzju
Copy link
Contributor

@cambyzju cambyzju commented Jan 31, 2024

Proposed changes

Issue Number: close #30449

After change:

  1. if we do not set allow_invalid_decimalv2_literal=true in be, we got following error message:
> update test_7 SET value = 0.1234567890123 WHERE id = '123';
ERROR 1105 (HY000): errCode = 2, detailMessage = failed to execute update stmt, query id: 3e1144db6f0d41eb-bb1a43e3c73a62c8, err: errCode = 2, detailMessage = (127.0.0.1)[INVALID_ARGUMENT]Invalid decimal(scale: 9) value: 0.1234567890123
  1. if we set allow_invalid_decimalv2_literal=true in be, we can update successfully and the decimal literal is truncated.

Further comments

If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

Copy link
Member

@xy720 xy720 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions github-actions bot added approved Indicates a PR has been approved by one committer. reviewed labels Jan 31, 2024
Copy link
Contributor

PR approved by anyone and no changes requested.

@xy720 xy720 merged commit 0710f43 into apache:branch-1.2-lts Feb 1, 2024
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. area/vectorization dev/1.2.8-merged reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants