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

Unexpected union results #1348

Closed
brynrhodes opened this issue Mar 29, 2024 · 1 comment · Fixed by #1352
Closed

Unexpected union results #1348

brynrhodes opened this issue Mar 29, 2024 · 1 comment · Fixed by #1352
Labels

Comments

@brynrhodes
Copy link
Member

The following union works as expected:

define Foo3: { 1 } union { 1.0 }

returning { 1, 1.0 }

However, this oddly results in a null?

define Foo2: { 1, 'hi', true } union { 1.0, true }

I expected { 1, 'hi', true, 1.0 } but I get { 1, 'hi', true, null }?

@JPercival
Copy link
Contributor

Appears that this may be a bug in the CQL Language Server rather than the CQL Runtime. IOW, they underlying value appears to be correctly computed, but it's serialized incorrectly.

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

Successfully merging a pull request may close this issue.

2 participants