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

ROUND(infinity) chokes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6.0
    • 0.7.0
    • UDF
    • None
    • Reviewed

    Description

      Since 1-arg ROUND returns an integer, it's hard to fix this without either losing data (return NULL) or making a backwards-incompatible change (return DOUBLE instead of BIGINT).

      In any case, we should definitely fix 2-arg ROUND to preserve infinity/NaN/etc, since it is already returning double.

      Attachments

        1. HIVE-1771.1.patch
          7 kB
          John Sichi

        Activity

          People

            jvs John Sichi
            jvs John Sichi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: