FirelyTeam / firely-cql-sdk

BSD 3-Clause "New" or "Revised" License
30 stars 17 forks source link

Investigate tuples with same field names but different order #622

Open baseTwo opened 1 month ago

baseTwo commented 1 month ago

Currently the new value tuples contain the first parameter with CqlTupleMetadata which contains the tuple item types and names. Equality of tuples are equal for tuples with exactly the same CqlTupleMetadata and the remaining values in the tuples.

But should we consider that the order of fields names should not matter? After all, it should be considered as a dictionary. So (a:1, b:"b") should be equal to (b:"b", a:1)

This needs to be investigated