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

Pig failed to interpret DateTime values in some special cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11
    • 0.12.0
    • data, impl
    • None
    • 1970-01-01

    Description

      For the query

      A = load 'date.txt' as ( f1:int, f2:datetime );
      dump A;

      with input data
      1,1970-01-01
      2,1970-01

      pig generates the following output
      (1,1970-01-01T00:00:00.000-01:00)
      (2,1970-01-01T00:00:00.000-01:00)

      which seemingly incorrectly interprets the day or month part as time zone.

      Attachments

        1. PIG-3316.patch
          3 kB
          Xuefu Zhang

        Activity

          People

            xuefuz Xuefu Zhang
            xuefuz Xuefu Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: