Hey Guys, 

I have a strange problem with the intersect command.

Here are the commands

select in() from concept where @rid in [#87:668]
returns a subset of 57 items

select in() from concept where @rid in [#87:6864]
returns a subset of 1 item (That is part of the above subset)

select expand($result) let $_concept3 = (select in() from concept where 
@rid in [#87:668]), $_concept4 = (select in() from concept where @rid in 
[#87:6864]), $result = intersect($_concept3,$_concept4)
I get a subset of 57 items

If I invert the variables in the intersect like this.
select expand($result) let $_concept3 = (select in() from concept where 
@rid in [#87:668]), $_concept4 = (select in() from concept where @rid in 
[#87:6864]), $result = intersect($_concept4,$_concept3)
I get subset of 1 items.

The intersect seems to be simply returning the first value.

What am I doing wrong?




-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to