Skip to content

Error Handling for SQRT, LN, and LOG Functions #2977

@younes199511

Description

@younes199511

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)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions