Re: how to pass constant parameter to Init() function of UDAF

2017-08-14 Thread Tim Armstrong
If you're running an older version of Impala you could be hitting https://issues.apache.org/jira/browse/IMPALA-2379 On Mon, Aug 14, 2017 at 1:49 PM, Tim Armstrong wrote: > Hi Santanu, > Thanks for your interest. I can probably help you out given a bit more > info.

Re: how to pass constant parameter to Init() function of UDAF

2017-08-14 Thread Tim Armstrong
Hi Santanu, Thanks for your interest. I can probably help you out given a bit more info. Whether the arguments are constant or not is determined based on analysis of the input expression to your function. In your case 1 and 100 are definitely constant. What version of Impala are you running?

how to pass constant parameter to Init() function of UDAF

2017-08-14 Thread Santanu Chatterjee
I am trying to develop a UDAF which takes three parameters. SQL syntax would look like this : select myudaf(col1, 1, 100) from mytab; Here col1 is from table mytab and of type numeric (double/int etc.). The other two parameters are constants. The third parameter determines memory allocation for