Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 4.0 - requires JDK6
-
Fix Version/s: 4.0 - requires JDK6
-
Component/s: Core
-
Labels:None
Description
For example:
epService.getEPAdministrator().createEPL("create schema MyEvent(myId int)");
epService.getEPAdministrator().createEPL("create schema CompositeEvent(c1 MyEvent, c2 MyEvent, rule string)");
epService.getEPAdministrator().createEPL("insert into MyStream select c, 'additionalValue' as value from MyEvent c");
epService.getEPAdministrator().createEPL("insert into CompositeEvent select e1.c as c1, e2.c as c2, '4' as rule " +
"from pattern [e1=MyStream -> e2=MyStream]");
The last statement "insert into CompositeEvent" fails to allow the insert determining that the inserted event is not compatible.
Workaround: don't define the target schema at all or define as a class.