Skip to content

MCOL-4627 fix SET int_col=decimal_col returns an error#3999

Open
AestheticAkhmad wants to merge 4 commits into
mariadb-corporation:stable-23.10from
AestheticAkhmad:MCOL-4627
Open

MCOL-4627 fix SET int_col=decimal_col returns an error#3999
AestheticAkhmad wants to merge 4 commits into
mariadb-corporation:stable-23.10from
AestheticAkhmad:MCOL-4627

Conversation

@AestheticAkhmad

@AestheticAkhmad AestheticAkhmad commented May 5, 2026

Copy link
Copy Markdown
Contributor

This issue MCOL-4627 was resolved by solving MCOL-4628. Thus, only testcases were added.

Edit: Gemini found an inconsistency bug, where Columnstore was rounding differently from InnoDB. Now it is fixed, and the testcases are adjusted.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new test case and corresponding result file to verify the behavior of assigning DECIMAL values to INT columns within the ColumnStore engine. The review feedback points out an inconsistency in rounding behavior for negative values, specifically noting that -0.5 rounds to 0 instead of the expected -1, and suggests expanding the test suite to include NULL values and additional negative rounding scenarios.

Comment thread mysql-test/columnstore/bugfixes/mcol_4627.result Outdated
Comment thread mysql-test/columnstore/bugfixes/mcol_4627.test

@mariadb-SergeyZefirov mariadb-SergeyZefirov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I agree with changes.

Comment thread mysql-test/columnstore/bugfixes/mcol_4627.test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants