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

Support specifying decimal places for ROUND function

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.3.0
    • Query Processor
    • None
    • Incompatible change, Reviewed
    • Hide
      HIVE-194. Support specifying decimal places for ROUND function. ROUND always rounds away from zero now. (David Phillips via zshao)
      Show
      HIVE-194 . Support specifying decimal places for ROUND function. ROUND always rounds away from zero now. (David Phillips via zshao)

    Description

      Standard behavior:

      ROUND( number, [ decimal_places ] )

      decimal_places can be negative, which rounds digits to the left of the decimal point. NULL is returned if either argument is NULL.

      Attachments

        1. hive-round.patch
          4 kB
          David Phillips

        Issue Links

          Activity

            People

              electrum David Phillips
              electrum David Phillips
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: