RLabkey: makeFilter on non-existant column returns all values

LabKey Support Forum
RLabkey: makeFilter on non-existant column returns all values Will Holtz  2018-08-06 13:52
Status: Closed
 

Hi,

I was surprised to see that the following R code returns the total number of users and not zero:

library(Rlabkey)
nrow(labkey.selectRows(
baseUrl="http://localhost:8080/labkey/",
folderPath="/",
schemaName="core",
queryName="users",
colFilter=makeFilter(c("foo", "EQUAL", "bar")),
) )

Perhaps that is an 'undefined' operation and therefore this output is valid. I would find it more useful to get zero back as that is more likely to break my code and make me realize I made a typo in my column name. This is with LabKey v18.2 and Rlabkey v2.2.2.

thanks,
-Will

 
 
Jon (LabKey DevOps) responded:  2018-08-20 14:31
Hi Will,

Thanks for bringing this to our attention. Let me get this checked and get back to you.

Thank you for your patience.

Regards,

Jon