return result;
}
}
private void compareToUDFUnixTimeStampDate(long t, long y) {
TimestampWritable tsw = toTimestampWritable(t);
LongWritable res = getLongWritable(tsw);
if(res.get() != y) {
System.out.printf("%d vs %d for %d, %d\n", res.get(), y, t,
tsw.getTimestamp().getTime()/1000);
}
Assert.assertEquals(res.get(), y);
}