orientdb
orientdb copied to clipboard
Unexpected exception when comparing a counted value to a value less than -2
OrientDB Version: 3.2.16
Java Version: 11
OS: CentOS
Expected and Actual behavior
When we query vertices whose number of incoming vertices is equal to -3, it returns an exception Not a legal range: [0, -2]
. But when we compare the number of incoming vertices with -2
or values that are greater than -2
, we can get the correct query result.
gremlin> :> g.V().where(__.in().count().is(eq(-3)))
Not a legal range: [0, -2]
gremlin> :> g.V().where(__.in().count().is(eq(-2)))
gremlin> :> g.V().where(__.in().count().is(eq(-1)))