[appengine-java] A List property - Can we filter 'null' and '[null]' values separately ?

2010-02-19 Thread vbart
Hello, I'm using low-level datastore API and its Query class to filter entities. I put two entities to datastore: the first has set a property 'list' to null and the second has the same property set to [null] (a list containing one null value). The following query will find both of them - that's

Re: [appengine-java] A List property - Can we filter 'null' and '[null]' values separately ?

2010-02-19 Thread Scott Hernandez
To summarize the issue, you cannot search for a null (list) if you store a null value in any instance of that (list) property. This is due to the way indexing is done for lists/arrays in the datastore. The short answer is no. You will have to store another property as a marker that you have a null