[storm] Fwd: Re: Re: multiple join's

Gordon Allott gordallott at gmail.com
Wed Jan 14 23:58:29 GMT 2009


On Wed, 2009-01-14 at 23:50 +0000, alexrichardson at gmail.com wrote:

> Your second example uses an 'And' which means you are trying to match
> an employee row where the name is 'Ben' AND ' Steeve' AND 'John'. An
> employee's ame can not match all three values, so it always fails and
> you get back 0 rows.
> 
> However, if you change to an 'Or' it should work. Then you are trying
> to match an employee row where the name is 'Ben' OR ' Steeve' OR
> 'John'.
> 
> So I would expect something along the following to work:
> 
> > store.using(*origin).find(Company, Or(*employees))

An or works, I would expect it to, but what I need is an and (or
something like it), an or would return companies where any of the
employee's listed existed and I need just the companies where all of
the employee's listed exist, I think that's what is confusing the issue
slightly.

Thanks, Gord
-- 
Gordon Allott (gordallott at gmail.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/storm/attachments/20090114/4d4933e8/attachment.pgp 


More information about the storm mailing list