Search in sources :

Example 1 with UDFMinute

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);
}
Also used : UDFMinute(org.apache.hadoop.hive.ql.udf.UDFMinute) TimestampWritable(org.apache.hadoop.hive.serde2.io.TimestampWritable) IntWritable(org.apache.hadoop.io.IntWritable)

Aggregations

UDFMinute (org.apache.hadoop.hive.ql.udf.UDFMinute)1 TimestampWritable (org.apache.hadoop.hive.serde2.io.TimestampWritable)1 IntWritable (org.apache.hadoop.io.IntWritable)1