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

add UDF for converting date time from one presentation to another

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 0.13.0
    • Fix Version/s: None
    • Component/s: UDF
    • Labels:
      None

      Description

      it'd be nice to have function for converting datetime to different formats, for example:
      format_date('2013-12-12 00:00:00.0', 'yyyy-MM-dd HH:mm:ss.S', 'yyyy/MM/dd')
      There are two signatures to facilitate further using:
      format_date(datetime, fromFormat, toFormat)
      format_date(timestamp, toFormat)

        Attachments

        1. Hive-6046.patch
          11 kB
          Kostiantyn Kudriavtsev
        2. HIVE-6046.patch
          11 kB
          Xuefu Zhang
        3. Hive-6046-Feb15.patch
          18 kB
          Kostiantyn Kudriavtsev

          Issue Links

            Activity

              People

              • Assignee:
                kostiantyn Kostiantyn Kudriavtsev
                Reporter:
                kostiantyn Kostiantyn Kudriavtsev
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: