ogcapi-features
ogcapi-features copied to clipboard
Related concerns around spec description of IS NULL and IS NOT NULL
I'm looking at: https://github.com/opengeospatial/ogcapi-features/blob/master/cql2/standard/clause_6_basic_cql2.adoc
Few related concerns:
- This doesn't mention "IS NOT NULL" as allowed as an operator, but used in an example for IS NULL.
- I assume "NOT IS NULL" would also work, but this isn't mentioned.
- There's no example using just "IS NULL"
- Is there a CQL JSON Operator "isNotNull" also?
@philvarner Requirement 1 says that a basic CQL2 implementation must support the BNF production booleanValueExpression
which includes the production comaprisonPredicate
which includes the production isNullPredicate
which includes both is null
and is not null
expressions.
booleanValueExpression = andExpression
| orExpression
| notExpression
| comparisonPredicate
| spatialPredicate
| temporalPredicate
| arrayPredicate
| subExpression;
comparisonPredicate = binaryComparisonPredicate
| isLikePredicate
| isBetweenPredicate
| isInListPredicate
| isNullPredicate;
isNullPredicate = scalarExpression "IS" ["NOT"] "NULL";
I'm guessing that is not sufficient explanation so I'll add a few more words into the text ... and examples.
ah, great. What about
Is there a CQL JSON Operator "isNotNull" also?
?
@philvarner, yes. There is a not
operator and an isNull
operator in JSON as well so you can combine them to get not null. Again, examples would help and I will add some.
@philvarner
Regarding:
- I assume "NOT IS NULL" would also work, but this isn't mentioned.
My understanding is that this is not supported by cql2-text.