-
Notifications
You must be signed in to change notification settings - Fork 18
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
Bug on handling conversion from a choice type #570
Comments
The CQL in the issue doesn't match the generated C#. What is the CQL for I don't believe the proposed fix is correct. Specifically:
Things are allowed to not work if the runtime type is not correct. I do not think invoking any kind of conversion is correct in this case. My memory is hazy but I do notice that In the Firely model, what does There are a lot of questions here. |
RR23_LIB_Umbrella_Measure.json Here’s the library that we used for testing |
Also follow discussion on cql choice types #604
The following cql results in the following c#:
The latebound property returns a choice type (REF#1). At this stage we do not have a C# equivalent type for this, so
object
is used. Unfortunately this can easily allow one to make assumptions when casting, such as at REF#2, where a safe cast is made toCqlDateTime
. At runtime, the actual type was astring
, so this did not work.Instead, when choice types are to be converted, the runtime
ICqlOperators.Convert<T>(object)
must be invoked.The text was updated successfully, but these errors were encountered: