Skip to content

Gremlin: Can not excecute "sum", "min", "max", "mean" with elements including INF #914

@joyemang33

Description

@joyemang33

ArcadeDB Version: 23.1.2

JDK Version: <brand and version here. You can find it in the 2nd line of the server output>

OS: Linux

Expected behavior

g.inject(Double.POSITIVE_INFINITY, 0.0).sum()
g.inject(Double.POSITIVE_INFINITY, 0.0).min()
g.inject(Double.POSITIVE_INFINITY, 0.0).max()
g.inject(Double.POSITIVE_INFINITY, 0.0).mean()

Actual behavior

They all return an unexpected exception java.lang.NumberFormatException
Detail: Character I is neither a decimal digit number, decimal point, nor "e" notation exponential mark.

However, g.inject(Double.POSITIVE_INFINITY).sum() to return "Infinity", by which I believe there may some bugs.
Would it be possible for you to fix it in a future release?

Steps to reproduce

Metadata

Metadata

Assignees

Labels

invalidThis doesn't seem rightwontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions