I have the impression that AQL UDFs are poorly tested right now, so this failure may be unrelated to the sameness of the dataset. We don't have any restrictions currently, and I'm not sure we need to - joins are an important use case, actually.
(Not self joins specifically, but joins for sure.)

Cheers,
Mike


On 12/8/15 6:28 PM, Ildar Absalyamov wrote:
Hi All,

As a part of feed ingestion we do allow preprocessing incoming data with AQL 
UDFs.
I was wondering if we somehow restrict the kind of UDFs that could be used? Do 
we allow joins in these UDFs? Especially joins with the same dataset, which is 
used for intake. Ex:

create type TweetType as open {
   id: string,
   username : string,
   location : string,
   text : string,
   timestamp : string
}
create dataset Tweets(TweetType)
primary key id;
create function feed_processor($x) {
for $y in dataset Tweets
// self-join with Tweets dataset on some predicate($x, $y)
return $y
}
create feed TweetFeed
apply function feed_processor;

The query above fails in runtime, but I was wondering if that theoretically 
could work at all.

Best regards,
Ildar


Reply via email to