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

Internal #2017: DECIMAL Downcast Rounding #12036

Open
wants to merge 6 commits into
base: feature
Choose a base branch
from

Conversation

hawkfish
Copy link
Contributor

When we downcast DECIMAL values (reduce the precision) we need to round instead of truncating.

fixes: duckdblabs/duckdb-internal#2017

When we downcast DECIMAl values (reduce the precision) we need to round
instead of truncating.

fixes: duckdblabs/duckdb-internal#2017
Copy link
Collaborator

@Mytherin Mytherin left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Looks good - one request for another test:

test/sql/types/decimal/test_decimal.test Show resolved Hide resolved
@duckdb-draftbot duckdb-draftbot marked this pull request as draft May 28, 2024 01:41
@hawkfish hawkfish marked this pull request as ready for review May 28, 2024 18:12
@Mytherin Mytherin changed the base branch from main to feature May 30, 2024 08:40
@duckdb-draftbot duckdb-draftbot marked this pull request as draft May 30, 2024 16:47
@hawkfish hawkfish marked this pull request as ready for review May 30, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants