Might have to do with constant propagation because the function was listed as
deterministic. You can try logging the stack trace during execution and pasting
both stack traces here, may help give more clues as to what is going on.
From: PradeepKumar Yadav
Hi,
Recently while creating a custom generic hive UDF I came across
a different behavior for the Evaluate method. The custom UDF had a logic to
increment the counter and write it to a file. Now when I execute it directly
without involving any table it always returns an extra