use of org.apache.hadoop.hive.ql.udf.UDFSecond in project hive by apache.
the class TestVectorTimestampExpressions method compareToUDFSecondLong.
private void compareToUDFSecondLong(Timestamp t, int y) {
UDFSecond udf = new UDFSecond();
TimestampWritable tsw = new TimestampWritable(t);
IntWritable res = udf.evaluate(tsw);
Assert.assertEquals(res.get(), y);
}
Aggregations