asterixdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ildar Absalyamov <>
Subject Feeds UDF
Date Wed, 09 Dec 2015 02:28:09 GMT
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

Best regards,

View raw message