orb
orb copied to clipboard
Prevent non-number in aggregate function
I think aggregation on string should not be possible because it leads to weird/unpredictable results:
I have started to work today on a patch that return a blank value when the input data is not a number (using typeof(val) === 'number'
because strings like '012' are also unpredictable)
What do you think? Should I submit a PR?
@ValentinH Any luck with this patch? It would definitely be useful.
Created a patch that I will PR. Creates a new "none" aggregateFunc option to allow using text fields.