Hi All,

With regard to https://issues.apache.org/jira/browse/TINKERPOP-2375

This issue opens up the conversation of what the behavior should be in
TinkerPop when there are comparisons of two objects with different types.
There are probably three simple approaches that can be taken.

1. Just throw an exception when this happens.
2. Try to cast to the wider type and compare. If there are no compatible
types then throw an exception.
3. Treat two objects of different types as being unequal.

We currently take approach 1 in 3.5.x and a mix of approach 1/3 in 3.6.x
and later. The introduction of ternary boolean starting in 3.6.x causes
certain predicates to filter with a variation of approach 3 and others to
throw like in approach 1. I would argue that it makes the most sense to
extend approach 3 to the rest of the predicates as this seems to be the
approach we've been taking recently to similar issues around filtering.

Any comments on this subject would be appreciated.

Thanks,
Ken

Reply via email to