AggregateFunctionBuilder inside a SUM
Hi there, I'm trying to build
I'm having trouble producing the inner part of the SUM, because it thinks it is not legal.
I would expect:
to work, but it doesn't:
dev link repro: https://kyse.link/ycYjL
does anyone know how I can get this done? or is this unsupported?
Solution:Jump to solution
Here you go https://kyse.link/X1Vxc
Our types are a bit too strict and give the type
100 instead of number for eb.lit(100)...3 Replies
Solution
Here you go https://kyse.link/X1Vxc
Our types are a bit too strict and give the type
100 instead of number for eb.lit(100)But you can just swap the multiplication around and there's no need to use
eb.lit https://kyse.link/pnjEU
This also works if you really want to use the literal there https://kyse.link/mSLWJAhh nice, awesome!
Thanks for explaining!