Skip to content

[C++][Gandiva] Cast double to decimal with rounding returns 0 #22373

@asfimport

Description

@asfimport

casting 1.15470053838 to decimal(18,0) gives 0. should return 1.

there is a bug in the overflow check after rounding.

Reporter: Pindikura Ravindra / @pravindra
Assignee: Pindikura Ravindra / @pravindra

PRs and other links:

Note: This issue was originally created as ARROW-5964. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions