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