Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-5964

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

    XMLWordPrintableJSON

Details

    Description

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

      there is a bug in the overflow check after rounding.

      Attachments

        Issue Links

          Activity

            People

              pravindra Pindikura Ravindra
              pravindra Pindikura Ravindra
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m