You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you certain this should be null? My reading of the spec here is that it would return false:
For tuple types, this means that equality returns true if and only if the tuples are of the same type, and the values for all elements that have values, by name, are equal.
No mention of "null". The discussion for Codes and Concepts says it uses "tuple semantics" and the example shown implies it would be false, not null.
The equal (=) operator for Codes and Concepts uses tuple equality semantics. This means that the operator will return true if and only if the values for each element by name are equal.
If either argument is null, or has different components specified, the result is null.
Notice how Concept1 and Concept2 vary only by the value of display. In the example you posted the only difference is value of Name. I suppose Name may also vary by type, since it's System.Any in the latter.
This expression currently returns false:
But tuples have no implied ordering, so this should be
null
Test cases for this (and other tuple equality testing) are being considered for the cql-tests repository here:
cqframework/cql-tests#3
When those tests are agreed and approved, they should be used as the source for the test for this issue
The text was updated successfully, but these errors were encountered: