cql-engine icon indicating copy to clipboard operation
cql-engine copied to clipboard

Translator fails to handle result types of Width()

Open duncand opened this issue 7 years ago • 0 comments

Run the following CQL:

define x1: width of Interval[DateTime(2012, 1, 5), DateTime(2012, 1, 25)]
define x2: Equivalent(x1, 20 days)
define y1: width of Interval[@T05:59:59.999, @T15:59:59.999]
define y2: Equivalent(x1, 36000000 milliseconds)

Expected result:

x1: 20 days
x2: true
y1: 36000000 milliseconds
y2: true

Actual result:

x1: 20 days
x2: Could not resolve call to operator Equivalent with signature (System.DateTime,System.Quantity)
y1: 36000000 milliseconds
y2: Could not resolve call to operator Equivalent with signature (System.Time,System.Quantity)

This problem is demonstrated by these failing CQL Engine tests:

  • CqlIntervalOperatorsTest.xml -> DateTimeWidth
  • CqlIntervalOperatorsTest.xml -> TimeWidth

duncand avatar Jan 29 '18 04:01 duncand