Skip to content

Unexpected exception when comparing a counted value with a negative value #999

@zhengyingying

Description

@zhengyingying

ArcadeDB Version: 23.2.1

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

Metadata

Metadata

Assignees

Labels

invalidThis doesn't seem right

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions