Search found 12 matches

by Michael Brand
Mon Nov 21, 2016 6:26 pm
Forum: PQL
Topic: Loop through List(Integer)
Replies: 38
Views: 1708

Re: Loop through List(Integer)

We discussed it and we have a solution, that may work. First, the problem of using the value of an attribute as unnest-attribute is the schema. Odysseus calculates the output-schema at query-compile-time and that's difficult in such a scenario, because it depends on "desiredDepartureDay". So our sug...
by Michael Brand
Mon Nov 21, 2016 5:46 pm
Forum: PQL
Topic: Loop through List(Integer)
Replies: 38
Views: 1708

Re: Loop through List(Integer)

Maybe we can find another way, but not today. We'll discuss that issue.
by Michael Brand
Mon Nov 21, 2016 5:18 pm
Forum: PQL
Topic: Loop through List(Integer)
Replies: 38
Views: 1708

Re: Loop through List(Integer)

No, I don't think that's possible, because "attribute" requires a String. You can define a variable in Odysseus Script:

Code: Select all

#DEFINE desiredDepartureDay 'monday'

Test := UNNEST(
   {
      attribute = ${desiredDepartureDay}
   }, NodeRel
)
Maybe that helps?
by Michael Brand
Mon Nov 21, 2016 3:13 pm
Forum: PQL
Topic: Loop through List(Integer)
Replies: 38
Views: 1708

Re: Loop through List(Integer)

I think, all is possible with "basic operations", but it might by not with good performance ;) You could use the UNNEST operator to get single tuples for each departure time. On the single elements you could run a MAP operator to calculate the waiting time. Afterwards, an aggregation could calculate...
by Michael Brand
Mon Nov 21, 2016 2:58 pm
Forum: PQL
Topic: LEFTJOIN result is equal to JOIN result even if there are no "matching partners"
Replies: 4
Views: 385

Re: LEFTJOIN result is equal to JOIN result even if there are no "matching partners"

I pushed a solution, your problem should be fixed with the next nightly build. Please let me know, whether it works for you.
by Michael Brand
Mon Nov 21, 2016 11:29 am
Forum: PQL
Topic: LEFTJOIN result is equal to JOIN result even if there are no "matching partners"
Replies: 4
Views: 385

Re: LEFTJOIN result is equal to JOIN result even if there are no "matching partners"

Hi Stefan,

your understanding of the LEFTJOIN is correct, so there might be a problem with the implementation. I will take a look at it today.
by Michael Brand
Tue Oct 28, 2014 9:21 am
Forum: Other Topics
Topic: SVN connection out of eclipse under linux
Replies: 3
Views: 641

Re: SVN connection out of eclipse under linux

Hi,

which SVN plugin do you use? "Subclipse" should work.
by Michael Brand
Tue Oct 28, 2014 9:16 am
Forum: PQL
Topic: String comparison bug
Replies: 16
Views: 1657

Re: String comparison bug

You need to write
out = CSVFILESINK(....)
Just like any other operator ;)
by Michael Brand
Fri Sep 19, 2014 8:03 am
Forum: PQL
Topic: Multiple definiton of source
Replies: 2
Views: 529

Re: Multiple definiton of source

Hey, you have to define the access to that source one time. In queries you can use that single access (e.g., System.interruptions) several times as input for other operators. But if u want to join two data streams, each attribute has to be unique (left data stream has attribute A, right datastream i...
by Michael Brand
Tue Sep 16, 2014 7:06 am
Forum: PQL
Topic: Documentation is missing
Replies: 15
Views: 1710

Re: Documentation is missing

Hey,

thought about a ChangeDetect for that goal ts?
http://odysseus.informatik.uni-oldenbur ... t+operator
Note that you should send heartbeats and set a heartbeatrate for ChangeDetect if you use the results for e.g. a join (because goals happen not that often)