ekuiper icon indicating copy to clipboard operation
ekuiper copied to clipboard

Error Handling for SQRT, LN, and LOG Functions

Open younes199511 opened this issue 1 year ago • 2 comments

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)

younes199511 avatar Jul 02 '24 12:07 younes199511

Thanks for reporting

Yisaer avatar Jul 03 '24 07:07 Yisaer

Hi, I can work on this, I'll reply later with a PR reference

AritroSaha10 avatar Jul 05 '24 15:07 AritroSaha10