camunda/feel-scala

string() function returns a string for a null value

saig0 opened this issue · 0 comments

Describe the bug
If I invoke the string() function with null, the function returns a string "null".

This behavior is different compared to previous versions of the FEEL engine (i.e. a regression).

To Reproduce
Steps to reproduce the behavior:

  1. Evaluate the expression
string(null)
  1. Verify that the result is a string
"null"

Expected behavior
If I invoke the string() function with null, it should return null (i.e. a null value, not a string).

Screenshot from 2023-10-20 13-24-55

(DMN 1.5, 10.3.4.1 Conversion functions, page 138)

Related DMN-TCK test case 0079-feel-string-function.

Environment

  • FEEL engine version: 1.17.0
  • Affects:
    • Camunda Automation Platform 7: [7.x]
    • Zeebe broker: 8.3.0