Apache TinkerPop
Apache TinkerPop

questions

Root Question Message

kyano
kyano1/24/2023
Ciel function in Math step doesn't seem to work

Ciel function in Math step doesn't seem to work.

__.values(VERTEX_PROPERTY_RATE)
.as('rate')                                   .select('product')
.select('price')
.as('price')
.select('product')
.select('quantity')
.math('price * _')
// .math('ciel _')
.math('_ * rate')


This works perfectly fine (returns a number), but when I uncomment the ciel step, then I get a weird error that ciel only takes number values and I'm passing it null
spmallette
spmallette1/24/2023
are you getting a NullPointerException? or some other error that refers to your using a null?
kyano
kyano1/24/2023
Let me copy the error
kyano
kyano1/24/2023
Server error: {"detailedMessage":"The variable ciel for math() step must resolve to a Number - it is instead of type null with value null"
@765668250331381840

Solution Message

spmallette
spmallette1/24/2023
ciel is mistyped. i believe you want ceil. the error is stating that math() does not recognize ciel as a function essentially and is treating it as a variable. since there is no definition for that it is null and math() doesn't like that.
kyano
kyano1/24/2023
lol sorry about that 😂
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy