Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-24628

Decimal values are displayed as scientific notation in beeline

    XMLWordPrintableJSON

Details

    Description

      As we are using BigDecimal.toString() returns scientific notation instead of original text, which confuse customer. It should be changed to toPlainString() at here

      https://github.com/apache/hive/blob/master/beeline/src/java/org/apache/hive/beeline/Rows.java#L165

      Repro steps:

       

      beeline> select cast(0 as decimal(20,10));
      //output
      0E-10 
      

       

      Attachments

        Activity

          People

            nareshpr Naresh P R
            nareshpr Naresh P R
            Votes:
            0 Vote for this issue
            Watchers:
            1 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 - 10m
                10m