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