Hi Andrew, This seems a bug of difference function. Your implementation seems good. WDYT about put everything in OSQLFunctionDifference.java and send as a Pull Request? What best chance to become a new contributor? :-)
Lvc@ On 18 August 2014 05:32, amoore <[email protected]> wrote: > Ok... at this point I'm not sure whether to file a bug, or a new feature > request. > > I can't tell from the documentation if whether the difference() function > is supposed to act as the analogous EXCEPT operator in SQL. The name > "difference" could mean the opposite of the "intersect()" function, but I > don't know. > > I also checked out the OrientDB GIT repository... I've looked through the > code of the OSQLFunctionDifference class, and it seems like it is trying to > accomplish functionality similar to the EXCEPT in SQL, but though I see it > initially adding all the vertexes found, it also removes them all. > > I tried taking the OSQLFunctionIntersect class, duplicating and renaming > it to OSQLFunctionExcept. I inverted the logic to remove duplicate results. > It seems to do what I need to have done. Is that what the > OSQLFunctionDifference function was supposed to do? If so, I probably need > to file a bug. If I'm totally misunderstanding the difference() function > (which I might be, the documentation doesn't give me much to work with > except the name itself), then I probably need to file for a new enhancement. > > I've seen most of the influential members of the OrientDB community > commenting and offering advice on other topics since I originally posted > this one nearly 5 days ago... I don't know if that means they don't have > any answers, or I'm asking a question that makes so little sense it doesn't > deserve an answer. I'd love to get any feedback the OrientDB experts might > have on this. > > Thanks in advance for your time! > > Regards, > > Andrew > > -- > > --- > 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/d/optout. > -- --- 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/d/optout.
