-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recasting "date and time" results in null #697
Comments
ZPA triage:
|
Is this really a bug ? Looking at the documentation the |
Moving this issue to |
@abbasadel I tend to reject this feature request. Reasoning:
I recommend rethinking how the expressions are modeled. |
Thanks @saig0 for your feedback. What you said makes sense to me. |
It seems that we have an agreement that we don't want to add the requested function. Let's close the issue. |
Describe the bug
Evaluate the following FEEL expression
built_now_again comes out null
To Reproduce
Steps to reproduce the behavior:
Expression with redundant 'date and time' casting:
{ builtin_now: now(), builtin_now_again: date and time(builtin_now) }
Results in:
{"builtin_now":"2023-07-31T18:39:50.009723879Z[Etc/UTC]","builtin_now_again":null}
Expression without redundant casting:
{ builtin_now: now(), builtin_now_again: builtin_now }
Results correctly:
{"builtin_now":"2023-07-31T18:42:39.022504381Z[Etc/UTC]","builtin_now_again":"2023-07-31T18:42:39.022504381Z[Etc/UTC]"}
DMN example
Expected behavior
builtin_now_again should equal builtin_now
Workaround
Avoid redundant casting
Hint
Seems like there's a case missing in datetime function in ConversionBuiltinFunctions.
The warning output we get is:
Environment
Support: https://jira.camunda.com/browse/SUPPORT-17817
The text was updated successfully, but these errors were encountered: