It might be related to the way you allocate buffer for your text input
in your UDF. It would be helpful if you can share the UDF code to help
people understand the problem.
On Mon, Sep 26, 2016 at 9:55 AM, Sandeep Dugar wrote:
> Hi ,
>
> I am trying to write a UDF for which the input is text, po
Can you try the following
@Param
FieldReader in;
int type = in.getType().getMinorType().getNumber();
*if (*type == org.apache.drill.common.types.TypeProtos.MinorType.
VARCHAR_VALUE) {
String res = in.readText().toString();
}
and see if it resolves your issue?
On Mon, Sep 26, 2016 at 9:5
Hi ,
I am trying to write a UDF for which the input is text, possibly with 1K
characters.
I am trying to get the string value from NullableVarcharHolder via the function
org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers.toStringFromUTF8(input.start,
input.end, input.buffer);
This is re