Hi,
I'm trying to deploy a UDF that I have written according to the
documentation.
I have also:
1. Copied the jar file
to jars/3rdparty
2. Changed the config "conf/drill-override.conf" to include:
drill.logical.function.package +=
["org.apache.drill.exec.expr.fn.impl","com.activitystream.drill.udfs"]
3. Rerun the Drillbit
bin/drillbit.sh start
The log shows no sign of the the UDF being loaded but if I use it in a SQL
statement then this error is thrown:
Error: PARSE ERROR: From line 1, column 184 to line 1, column 219: No match
found for function signature asRoundTimeStamp(<ANY>, <CHARACTER>)
The relevant part of the UDF source:
package com.activitystream.drill.udfs;
public class ASUserDefinedFunctions {
@FunctionTemplate(name = "asRoundTimeStamp", scope =
FunctionTemplate.FunctionScope.SIMPLE, nulls =
FunctionTemplate.NullHandling.NULL_IF_NULL)
public static class RoundTimeStamp implements DrillSimpleFunc
Can anyone please assist?
Regards,
-Stefan