Deena Dhayalan
08/23/2022, 1:20 PMorg.apache.pinot.*.function.*
But In the Doc It is org.apache.pinot.scalar.XXXX
Can Anyone say Is there a way of auto register package when the package is this 'org.apache.pinot.scalar.XXXX'?
Or org.apache.pinot.*.function.* this will be the actual package?
Deena Dhayalan
08/26/2022, 6:32 AMsuraj sheshadri
10/20/2022, 11:40 PMpackage org.apache.pinot.scalar.udfpoc;
import java.util.concurrent.TimeUnit;
import org.apache.pinot.spi.annotations.ScalarFunction;
public class pinotudfpoc {
private pinotudfpoc() {
}
@ScalarFunction
public static long surajtoEpochSeconds(long millis) {
return TimeUnit.MILLISECONDS.toSeconds(millis);
}
@ScalarFunction
public static double surajdivide(double a, double b) {
return a / b;
}
@ScalarFunction
static String surajmySubStr(String input, Integer beginIndex) {
return input.substring(beginIndex);
}
}
Deena Dhayalan
11/02/2022, 7:01 AMorg.apache.pinot.udf.function.Scalar
Kindly Try this package