Skip to content

Commit

Permalink
clarified that missing attributes should not result in errors
Browse files Browse the repository at this point in the history
Signed-off-by: Calum Murray <cmurray@redhat.com>
  • Loading branch information
Cali0707 committed Feb 5, 2024
1 parent f1db8a4 commit 7c5bf05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cesql/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ by expected or unexpected errors. Nevertheless CESQL includes the concept of err
case an error arises, the evaluator collects a list of errors, referred in this spec as _error list_, which is then
returned together with the evaluated value of the CESQL expression.

Addressing an attribute which is missing from the input event MUST not return an error due to the missing attribute. Instead,
an empty string MUST be assumed as its value, and execution MUST proceed as it would with any other string value.

Whenever possible, some error checks SHOULD be done at compile time by the expression evaluator, in order to prevent
runtime errors.

Expand Down

0 comments on commit 7c5bf05

Please sign in to comment.