Does Janusgraph support INFINITY in numeric comparisons predicate? #2768
Unanswered
Yicheng-Wang
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Do you see the same error when you use |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Expected behavior
We use compare predicate in the graph that contains
infinity
value, and expecte to see thatpositive infinity
is greater than any other values andnegative infinity
on the contrary.Actual behavior
We encounter the exception as follows:
Example to reproduce
If we change the
ATK
property of vertexSuperman
to normal Double type value, the query works just fine. However, the exception would occur if we useDouble.POSITIVE_INFINITY
orDouble.NEGATIVE_INFINITY
. We are wondering if janusgraph supportinfinity
value in numeric comparisons predicate, as INFINITY bigger than other normal value is always true in Java.Beta Was this translation helpful? Give feedback.
All reactions