Remove “in” expression workaround - #183
Conversation
d4d63c0 to
1323f11
Compare
|
I threw in some additional support for NSExpression syntactic sugar so developers don’t feel like they have to match our examples exactly:
|
40585f6 to
7bbda8d
Compare
7bbda8d to
12903be
Compare
|
I tested this PR out with point features with a Sample code |
|
Noting that Also, using |
Thanks for noticing that: mapbox/mapbox-gl-native#16262. |
fabian-guerra
left a comment
There was a problem hiding this comment.
Thank you! Using match for in expressions what kind of problematic. With this change it became simpler.
|
|
||
| return matchExpression.mgl_jsonExpressionObject; | ||
| op = @"in"; | ||
| break; |
|
Removed the match-based in expression workaround in favor of real support for an in expression operator. Avoid interpreting “literal IN literal” predicates as legacy filters.
Added support for “ANY … =” and “ALL … !=” as synonyms for “IN” and “NOT IN”, respectively.
Removed the
match-based workaround forinexpressions in favor of real support for aninexpression operator, including support for testing whether a string is a substring of another string.match-based workaround withinoperator mappingsANY/SOMEandNONEwith=andALLwith!=inexpressions in “Information for Style Authors” guideFixes #168. Depends on #181. Retarget and rebase this PR onto master before merging.
/cc @mapbox/maps-ios