I can't seem to run queries that checks for less than/greater than with 
gremlin.

The query *g.V.has('cityMPG', T.lte, 15)* throws
Caught java.lang.ClassCastException: java.lang.Integer cannot be cast to 
java.math.BigDecimal

The query *g.V.has('cityMPG', T.lte, '15')* throws
Caught java.lang.ClassCastException: java.lang.String cannot be cast to 
java.math.BigDecimal

The query *g.V.has('cityMPG', T.lte, '15c')* throws
Caught java.lang.ClassCastException: java.lang.String cannot be cast to 
java.math.BigDecimal

And the query *g.V.has('cityMPG', T.lte, 15c)* throws
Caught org.codehaus.groovy.control.MultipleCompilationErrorsException: 
startup failed:

The same is true for T.gt, T.gte, T.lt and T.lte
Using T.eq seems to never match

I'm using OrientDB 2.0.1
How should I pass a Decimal value in gremlin?

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to