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

Provide an option in months_between UDF to disable rounding-off

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.2.0
    • None
    • Reviewed

    Description

      Rounding off was added in GenericUDFMonthsBetween so that it can be compatible with systems like oracle. However, there are places where rounding off is not needed.

      E.g "CAST(MONTHS_BETWEEN(l_shipdate, l_commitdate) / 12 AS INT)" may not need rounding off via BigDecimal which is compute intensive.

      Attachments

        1. HIVE-15511.1.patch
          6 kB
          Rajesh Balamohan
        2. HIVE-15511.2.patch
          12 kB
          Rajesh Balamohan
        3. HIVE-15511.3.patch
          13 kB
          Rajesh Balamohan
        4. HIVE-15511.4.patch
          13 kB
          Rajesh Balamohan

        Activity

          People

            rajesh.balamohan Rajesh Balamohan
            rajesh.balamohan Rajesh Balamohan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: