Skip to content

[CALCITE-7844] Incorrect scale reduction for DECIMAL division - #5316

Open
alexandrefimov wants to merge 1 commit into
apache:mainfrom
alexandrefimov:CALCITE-7844
Open

alexandrefimov wants to merge 1 commit into
apache:mainfrom
alexandrefimov:CALCITE-7844

Conversation

@alexandrefimov

Copy link
Copy Markdown
Contributor

Fix decimal division scale reduction to use integral digits instead of total precision, matching the documented algorithm.

Add regression coverage and update affected type and result expectations.

Jira: https://issues.apache.org/jira/browse/CALCITE-7844

Tests: full repository build on Java 21.

@alexandrefimov alexandrefimov changed the title [CALCITE-7844] Fix decimal division scale reduction to use integral digits [CALCITE-7844] Incorrect scale reduction for DECIMAL division Oct 9, 2026
@sonarqubecloud

sonarqubecloud Bot commented Oct 9, 2026

Copy link
Copy Markdown

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.

1 participant