dmn-tck / tck

Decision Model and Notation Technology Compatibility Kit
https://dmn-tck.github.io/tck
51 stars 36 forks source link

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

Open StrayAlien opened 5 months ago

StrayAlien commented 5 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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.