Johannes Rußek
Tue, 16 Mar 2010 11:59:19 -0700
Hello everybody,I've been trying to use org.apache.pig.piggybank.evaluation.util.apachelogparser.DateExtractor from piggybank that comes with pig 0.6.0, but i don't seem to be able to set the output format.
whatever i use as the argument in the construct:DEFINE MyDateExtractor org.apache.pig.piggybank.evaluation.util.apachelogparser.DateExtractor('HH:mm:ss');
i only ever get yyyy-MM-dd back.however, when i change DEFAULT_OUTGOING_DATE_FORMAT in main/java/org/apache/pig/piggybank/evaluation/util/apachelogparser/DateExtractor.java to something like 'yyyy-MM-dd-HH' it is able to output the right format.
Am i doing something wrong? regards, Johannes