Pig
  1. Pig
  2. PIG-1303

unable to set outgoing format for org.apache.pig.piggybank.evaluation.util.apachelogparser.DateExtractor

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.6.0
    • Fix Version/s: 0.7.0, 0.8.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      pig 0.6.0 on a fedora linux machine, jdk 1.6 u11

      Description

      I'm unable to set the format of the outgoing date string in the constructor as it's supposed to work.
      The only way i could change the format was to change the default in the java class and rebuild piggybank.
      Apparently this has something to do with the way pig instantiates DateExtractor, quoting a replier on the mailing list:

      David Vrensk said:

      I ran into the same problem a couple of weeks ago, and
      played around with the code inserting some print/log statements. It turns
      out that the arguments are only used in the initial constructor calls, when
      the pig process is starting, but once pig reaches the point where it would
      use the udf, it creates new DateExtractors without passing the arguments.

      1. PIG-1303.patch
        9 kB
        Dmitriy V. Ryaboy
      2. ASF.LICENSE.NOT.GRANTED--TypeCheckingVisitor.java.diff
        0.6 kB
        Johannes Rußek

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Dmitriy V. Ryaboy
              Reporter:
              Johannes Rußek
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development