Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-5021 Add Interval data type
  3. HIVE-9690

Refactoring for non-numeric arithmetic operations

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • UDF
    • None

    Description

      Some refactoring for HIVE-5021. The current arithmetic UDFs are specialized for numeric types, and trying to change the logic in the existing UDFs looks a bit complicated. A less intrusive fix would be to create the date-time/interval arithmetic UDFs as a separate UDF class, and to make the plus/minus UDFs act as a wrapper which would invoke the numeric or interval arithmetic UDF depending on the args.

      Attachments

        1. HIVE-9690.1.patch
          24 kB
          Jason Dere
        2. HIVE-9690.2.patch
          31 kB
          Jason Dere
        3. HIVE-9690.3.patch
          31 kB
          Jason Dere

        Issue Links

          Activity

            People

              jdere Jason Dere
              jdere Jason Dere
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: