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

add UDF for converting date time from one presentation to another

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.13.0
    • None
    • UDF
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: