-
Bug
-
Resolution: Done
-
Major
-
7.46.0.Final
-
None
-
2021 Week 04-06 (from Jan 25)
-
3
-
Undefined
-
NEW
-
NEW
-
---
-
---
exec-model fails to handle ZonedDateTime with the following rule.
rule R when $t1 : TimestampedObject() $t2 : TimestampedObject( zonedDateTime after $t1.zonedDateTime ) then list.add($t2.getName()); end
java.lang.RuntimeException: Cannot extract timestamp from 2021-01-29T17:21:38.986580+09:00[Asia/Tokyo] at org.drools.core.base.evaluators.PointInTimeEvaluator.getTimestampFromDate(PointInTimeEvaluator.java:114) at org.drools.modelcompiler.constraints.TemporalConstraintEvaluator.getStartTimestamp(TemporalConstraintEvaluator.java:79) at org.drools.modelcompiler.constraints.TemporalConstraintEvaluator.evaluate(TemporalConstraintEvaluator.java:49) at org.drools.modelcompiler.constraints.LambdaConstraint.isAllowedCachedLeft(LambdaConstraint.java:162) at org.drools.core.common.SingleBetaConstraints.isAllowedCachedLeft(SingleBetaConstraints.java:134) at org.drools.core.phreak.PhreakJoinNode.doLeftInserts(PhreakJoinNode.java:108) at org.drools.core.phreak.PhreakJoinNode.doNode(PhreakJoinNode.java:71) ...
This issue is found in org.drools.mvel.integrationtests.TemporalOperatorTest but there is another issue in TemporalOperatorTest so will be split to another JIRA (DROOLS-5974). This JIRA addresses only the ZonedDateTime issue.
- is related to
-
DROOLS-5974 TemporalOperatorTest.testComparisonWithLocalDateAndLiteral error with exec-model
- Closed
-
DROOLS-5729 Reorganize drools unit tests
- Coding In Progress