Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-4579

casting of primitive datetime data type should work

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • 0.18.0
    • None
    • None

    Description

      datetime is a primitive data type.
      One should be able to cast a chararray or a long into a datetime.
      currently, this does not work.

      casting from a chararray should call the built-in UDF ToDateISO(chararray)
      casting from a long should call the built-in UDF ToDate(long)

      Attachments

        Activity

          People

            Unassigned Unassigned
            michaelthoward Michael Howard
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: