Description of problem: When there is a query with temporal operator in dlr file and no other queries are defined in same file, query doesn't return required results. Version-Release number of selected component (if applicable): Drools 6.0.0.Beta2 How reproducible: Pull request #201 submited in Drools. Steps to Reproduce: 1. Write a simple test with one KieSession and two SessionEntryPoints. Into first SessionEntryPoint insert Event at time 0s. Into second SessionEntryPoint insert three event at times 0s, 10s and 20s. 2. Make a drl file with one query, which should returns events from second SessionEntryPoint with time in interval <0s, 9s> after event from first SessionEntryPoint. 3. Run Test. Actual results: Zero events are returned. Expected results: There should be one event with time 0s. Additional info: If more queries are defined, result is correctly one event with time 0s.
I couldn't reproduce this issue on the master. I am assuming that it has been fixed by a previous commit. I added a unit test to demonstrate that it is working now: https://github.com/droolsjbpm/drools/commit/f6f4543ef
Verified on BRMS 6.0.0.ER5.