Description
- Comparing on NaN should return no results.
- Comparability throws exception today but should return nulltype when comparing incompatible types.
- When Vertex /Edge/VertexProperty is compared, today it throws but it should return nulltype.
- When nulltype is compared, today it throws an exception but it should return nulltype
gremlin> g.addV().property('key',-5) ==>v[0] gremlin> g.addV().property('key',0) ==>v[2] gremlin> g.addV().property('key',5) ==>v[4] gremlin> g.addV().property('key',Double.NaN) ==>v[6] gremlin> g.V().values("key").is(lte(Double.NaN)) // 3.5.x ==>-5 ==>0 ==>NaN gremlin> g.V().values("key").is(gte(Double.NaN)) // 3.5.x ==>0 ==>5 ==>NaN gremlin> g.V().values("key").is(lt(Double.NaN)) // 3.5.x ==>-5 gremlin> g.V().values("key").is(gt(Double.NaN)) // 3.5.x ==>5 gremlin> g.V().values("key").is(lte(Double.NaN)) // proposed ==>NaN gremlin> g.V().values("key").is(gte(Double.NaN)) // proposed ==>NaN gremlin> g.V().values("key").is(lte(Double.NaN)) // proposed gremlin> g.V().values("key").is(gte(Double.NaN)) // proposed
Attachments
Issue Links
- relates to
-
TINKERPOP-2687 Gremlin Boolean Value Expressions 2.0 with Ternary Boolean Logics
- Closed