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')
__.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
Solution:
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.
Jump to solution
4 Replies
spmallette
spmallette•2y ago
are you getting a NullPointerException? or some other error that refers to your using a null?
kyano_k
kyano_k•2y ago
Let me copy the error
Server error: {"detailedMessage":"The variable ciel for math() step must resolve to a Number - it is instead of type null with value null"
Server error: {"detailedMessage":"The variable ciel for math() step must resolve to a Number - it is instead of type null with value null"
@spmallette
Solution
spmallette
spmallette•2y ago
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_k
kyano_k•2y ago
lol sorry about that 😂
Want results from more Discord servers?
Add your server