In cases where providers do not define an idField and koop generates the OBJECTID property by default, requests with where parameters that include the OBJECTID will return zero features. This happens because the alasql library applies the WHERE clause to the data before the esriFy function that creates the OBJECTID. Since OBJECTIDs don't exist at that point, zero features are selected.
When no idField is set, and the where includes OBJECTID we need to strip that part of the where before it heads off to alasql.
In cases where providers do not define an
idField
and koop generates theOBJECTID
property by default, requests withwhere
parameters that include the OBJECTID will return zero features. This happens because the alasql library applies theWHERE
clause to the data before theesriFy
function that creates the OBJECTID. Since OBJECTIDs don't exist at that point, zero features are selected.When no
idField
is set, and thewhere
includesOBJECTID
we need to strip that part of thewhere
before it heads off to alasql.