Error Handling for SQRT, LN, and LOG Functions
Environment:
- eKuiper version: 1.12.8
What happened and what you expected to happen: The SQRT, LN, and LOG functions currently do not return an error when the argument is a negative value, unlike other undefined states where an error is returned, such as division by zero. It would greatly improve the user experience if an error was returned in such cases, as it would clearly indicate when an execution of a rule has failed due to an unaccepted argument. This enhancement would benefit users by providing clearer feedback on invalid inputs
How to reproduce it (as minimally and precisely as possible): Try to execute a rule with sqrt(-1) or log(-1)
Thanks for reporting
Hi, I can work on this, I'll reply later with a PR reference