?????? UDA debugging, was Re: Broken/Flaky Tests

2018-06-06 Thread ??????
hi, http://impala.apache.org/docs/build/html/topics/impala_udf.html this URL gives me little help, Could you see my code and then give me some useful advise. Could you show me a example of UDA function which input is string,intermediate results saved as unsigned char array, output is string.

?????? UDA debugging, was Re: Broken/Flaky Tests

2018-06-06 Thread ??????
md5_udaf.h #ifndef _MD5_UDAF_H_ #define _MD5_UDAF_H_ #include"udf/udf.h" using namespace impala_udf; #define UDF_MD5_UPPERCASE 1 /* generate same result as previous releases * not correct if the length of the input is 56 + 64*N (N>= 0) bytes */ #define UDF_MD5_COMPAT 0 void md5(const

Re: Broken/Flaky Tests

2018-06-06 Thread Tim Armstrong
We ran into some test issues cherry-picking the latest set of changes to 2.x. I pushed out a fix and I'm merging now. Once that is done the main build fixes should be on both 2.x and master. On Tue, Jun 5, 2018 at 6:08 PM, Tim Armstrong wrote: > Ok, so 2/3 of those fixes are merged and the

Re: Re: A question about AnalysisException

2018-06-06 Thread Greg Rahn
skyyws - Can you file a bug with the code to reproduce it if you have not yet done so already? On Tue, Jun 5, 2018 at 7:28 PM skyyws wrote: > > This sql really worked, thanks a lot! > > > > > 2018-06-06 > skyyws > > > > 发件人:Fredy Wijaya > 发送时间:2018-06-06 10:14 > 主题:Re: A question about

Re: UDA debugging, was Re: Broken/Flaky Tests

2018-06-06 Thread Jim Apple
You have provided the function prototype, but not its definition. For cerr: http://impala.apache.org/docs/build/html/topics/impala_udf.html " To handle errors in UDFs, you call functions that are members of the initial FunctionContext* argument passed to your function. A UDF can record one or

?????? UDA debugging, was Re: Broken/Flaky Tests

2018-06-06 Thread ??????
Hi define function SQL?? create aggregate function countMD5(string) returns string location 'hdfs://nameservice1:8020//user/hive/udfjars/libmd5udaf.so' init_fn='init_func' update_fn='update_func' merge_fn='merge_func' serialize_fn='serialize_func' finalize_fn='finalize_func'; package