Closed mapedraza closed 11 months ago
From #1471
Conclusions:
- case
b
(v*3
)
- For Null values, is always failing (treating
Null
as 0)- For NaN values, it works well, giving Null as response.
- case
f
((v*3)==Null?'soy null':'no soy null'
) is always failing- Using
explicitAttrs
acts as sending a measurement with null value
This PR solves case b
. Case f
is still failing.
Not sure if this approach is introducing a bit of overhead, and maybe just only at measure level approach could be enough https://github.com/telefonicaid/iotagent-node-lib/pull/1473 but LGTM
This PR delete null elements from context. This fix arithmetic problems due to JEXL library bug: https://github.com/telefonicaid/iotagent-node-lib/issues/1440 https://github.com/TomFrost/Jexl/issues/133
Overpasses: https://github.com/telefonicaid/iotagent-node-lib/pull/1471