asterixdb-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Carey <>
Subject Re: Socket feed questions
Date Thu, 29 Oct 2015 23:46:02 GMT
I know that Raman definitely had such a thing "running in the lab" here 
at some point.
(It was a similar join-with-a-reference-dataset use case.)
That was his AQL-bodied use case - so yes!
He had to "cheat" in one way - his query had a return clause - so he had 
to know the desired output schema ahead of time.
With Heri's new work on being able to "add one more field to whatever", 
one could now do this without that "cheat".

On 10/29/15 4:18 PM, Young-Seok Kim wrote:
> I'm not sure whether the following UDF is possible or not, but 
> hopefully it is.
> What we're trying to do is to have the following UDF.
> The UDF
> 1) accepts an incoming tweet record through a feed job as an input and 
> then
> 2) takes a field, more specifically, coordinate field value from the 
> tweet record and sends a spatial-intersect query using the coordinate 
> in order to find out the corresponding county of the coordinates (we 
> have created AsterixDB instance which stores US county shapes records 
> into a dataset and created R-tree index on the polygon field of it, so 
> the query will return the county effectively using the R-tree index)
> 3) creates a new tweet record consisting of the original record's 
> fields + the returned county value
> 4) ingests to a tweet dataset in the AsterixDB instance.
> Can we have such an UDF?
> Best,
> Young-Seok
> On Thu, Oct 29, 2015 at 3:53 PM, Heri Ramampiaro < 
> <>> wrote:
>     >
>     > 2. Can we use AQL function in those kind of feed UDFs?
>     Can you give an example of what you are trying to do?
>     I.e do you want to run an AQL inside a UDF or use an AQL function as a
>     UDF connected to a running feed?
>     -heri

View raw message