Type inference in duration arithmetic is wrong

Description

We wrongly infer the type of the inference source for parts of duration arithmetic which results in wrong parameter type expectations. For example, the query where (:date - e.date) by day > 10 infers that the parameter type is Integer, which is not correct.

Activity

Show:

Gavin King August 15, 2023 at 10:53 AM

Awesome, thanks 🙏

Christian Beikov August 15, 2023 at 10:47 AM

It’s related, but not a duplicate. I’ll take a look at next.

Gavin King August 15, 2023 at 10:05 AM

Isn’t this issue just a dupe of ?

Fixed

Details

Assignee

Reporter

Sprint

Fix versions

Affects versions

Priority

Created August 14, 2023 at 7:57 AM
Updated August 31, 2023 at 5:28 PM
Resolved August 15, 2023 at 9:50 AM