Skip to content
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

Does @"P0D" = "P0Y" give true or null (or false?) ? #665

Open
StrayAlien opened this issue May 24, 2024 · 3 comments
Open

Does @"P0D" = "P0Y" give true or null (or false?) ? #665

StrayAlien opened this issue May 24, 2024 · 3 comments

Comments

@StrayAlien
Copy link
Contributor

StrayAlien commented May 24, 2024

Spec says they are equal. I think it should be true

“with the exception of the zero- length duration, no instance of xs:dayTimeDuration can ever be equal to an instance of xs:yearMonthDuration.”

Caveat: the above quote is in the Sfeel section of the spec.

@baldimir
Copy link
Collaborator

baldimir commented Aug 15, 2024

Based on discussion on the meeting - To be safe, we need to bring this to RTF. It is not clear, if S-FEEL specification applies to FEEL. In other words, if S-FEEL is a subset of FEEL, or a separate specification.

@StrayAlien
Copy link
Contributor Author

Thanks @baldimir @opatrascoiu - note also that this would have implications for implicit conversions. Eg, like this one:

When a date value is subject to implicit conversions (10.3.2.9.4) it is considered to be equivalent to a date time value in which the time of day is UTC midnight (00:00:00).

Has a RTF ticket been raised, or shall I?

@StrayAlien
Copy link
Contributor Author

FYI, seems Denis has raised a ticket that it should actually be false. I agree. https://issues.omg.org/issues/DMN16-91. Breaking change though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants