orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

Unexpected exception when comparing a counted value to a value less than -2

Open zhengyingying opened this issue 1 year ago • 0 comments

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)))

Steps to reproduce

zhengyingying avatar Apr 03 '23 09:04 zhengyingying