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

Some expand operators not working as expected #735

Open
mholck opened this issue Mar 21, 2022 · 3 comments
Open

Some expand operators not working as expected #735

mholck opened this issue Mar 21, 2022 · 3 comments
Labels
Milestone

Comments

@mholck
Copy link

mholck commented Mar 21, 2022

Using some of the examples from the CQL Specification some of the expand operators seem to be incorrect or unable to resolve

expand { Interval[@2018-01-01, @2018-01-04] } per 2 days
is expanding out to
[Interval[2018-01-01, 2018-01-03), Interval[2018-01-03, 2018-01-05), Interval[2018-01-05, 2018-01-07)]
Note the extra interval at the end

expand { Interval[10.0, 12.5] } per 1
throws exception Could not resolve call to operator Expand with signature (list<interval<System.Decimal>>,System.Integer)

expand { Interval[10, 10] } per 0.1
throws exception Could not resolve call to operator Expand with signature (list<interval<System.Integer>>,System.Decimal)

expand { Interval[1, 10] } per 2
throws exception Could not resolve call to operator Expand with signature (list<interval<System.Integer>>,System.Integer)

expand { Interval[@T10, @T10] } per minute
is returning null rather than { }

@cmoesel
Copy link
Member

cmoesel commented Mar 21, 2022

Hi @mholck -- which CQL engine are you using?

@mholck
Copy link
Author

mholck commented Mar 21, 2022

1.5
These issues were discovered when updating the tests in cql-engine to try and get all CqlIntervalOperators tests working

@mholck
Copy link
Author

mholck commented Mar 21, 2022

They also fail in Atom using the language-cql 2.11.1 plugin

@brynrhodes brynrhodes added the bug label Apr 14, 2022
@brynrhodes brynrhodes added this to the Maintenance milestone Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants