Hi Xikui, 1. How to install UDF on instance running from Eclipse+ AsterixHyracksIntegrationUtil?
There are a few external library test cases, you can look at them and see how we test those. One thing you will notice is that we only test a few examples. Clearly, we can do better. You can find the test cases in: asterixdb/asterixdb/asterix-app/src/test/resources/runtimets/queries/external-library As for the difference between scalar, aggregate, and unnest functions, here is the way I see it: 1. Scalar: one input to one output. 2. Aggregate: 0 or more inputs to one output. 3. Unnest: one input to 0 or more outputs. Hope that helps, Abdullah. On Thu, Jun 2, 2016 at 11:40 PM, Xikui Wang <[email protected]> wrote: > Hi Devs, > > I want to use UDF to process the Tweets that I got from the feed, and I met > following two questions. Hope you guys can help me or point me to the right > documentation. > > 1. How to install UDF on instance running from > Eclipse+AsterixHyracksIntegrationUtil? > > Website only mentioned how to install with Managix. I am wondering if there > is a way for me to install it on instance running in Eclipse, which is > easier for debugging. > > 2. Implementation of UDF > > I found several UDFs in > > asterixdb/asterix-external-data/src/test/java/org/apache/asterix/external/library, > like SumFunction, ParseTweetFunction. I assume if I want to implement new > UDF, it needs to implement IExternalScalarFunction interface and to be put > under the same directory? I also found 'aggregate' and 'unnest' type which > is not implemented yet. Just out of curiosity, what is the difference > between them? > > Thanks in advance! :) > > Best, > Xikui >
