bodar / lazyrecords

Think LINQ for Java
8 stars 4 forks source link

Can't filter by fields that haven't been mapped #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If I do this:
{{{
records.get(people).map(select(isbn, age)).filter(where(firstName, is("ray"))
}}}

I will never get a match because firstName has been filtered out earlier on.

I presume it will work with SqlRecords, although I haven't tried it. Is this 
the case?

I don't know whether we want to or can support it elsewhere.

If we don't support it, we should probably have a descriptive error message to 
save head scratching.

Original issue reported on code.google.com by matthew....@gmail.com on 23 Dec 2012 at 3:01

GoogleCodeExporter commented 9 years ago
Yea currently this works with SqlRecords but none of the others. 

This should defo be consistent and return none for SqlRecords as well but I'm 
not sure how we do that.

Original comment by daniel.bodart@gmail.com on 12 Nov 2013 at 2:50