ekuiper icon indicating copy to clipboard operation
ekuiper copied to clipboard

Can not create a rule that starts with '-' prefix and expression between parenthesis

Open younes199511 opened this issue 1 year ago • 0 comments

Environment:

Environment:

  • eKuiper version: 1.11.4
  • Hardware configuration: Intel I-7 CPU
  • OS: Alpine docker image
  • Others:

What happened and what you expected to happen: if you try to create a rule with expression that starts with '-' prefix and expression between parenthesis, it is refused and it should be accepted as it is a valid mathematical expression that can be used in any other calculator.

How to reproduce it (as minimally and precisely as possible): try to create a rule with -(5+2) for example SELECT -(5+2) as comp_result

Anything else we need to know?:

image

younes199511 avatar Feb 19 '24 11:02 younes199511