CQL: "BEFORE" and "AFTER" should be understood for properties as well.
Summary
At the moment BEFORE
and AFTER
are only understood for explicitly temporal keywords such as CREATED
or MODIFIED
. (See also #253 for a related issue.) For normal users it seems counterintuitive that BEFORE
works only there and not for properties of temporal types. It may make sense to allow BEFORE
and AFTER
as normal operators, with equal translations to <=
and >=
as for the temporal keywords.
At least no unhandled exception should be shown.
Expected Behavior
FIND Record WITH last_seen AFTER 2022-09-01
should work.
Actual Behavior
This query returns an unhandled error:
mismatched input 'AFTER ' expecting {<EOF>, IN, OPERATOR, LIKE, IS_NULL, IS_NOT_NULL, NEGATION, WITH, WHERE, WHICH, HAS_A, '.'}
Using >=
instead works as expected.
Steps to Reproduce the Problem
FIND Record WITH last_seen AFTER 2022-09-01
Specifications
- Version: latest release
Possible fixes
Do you have ideas how the issue can be resolved?