Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.9.9
Description
SELECT COUNT(DISTINCT R3.id) AS count FROM ( SELECT t.* FROM R AS t WHERE ((ARRAY_SUM(( SELECT VALUE i.`count` FROM t.`a1` AS i)) >= 3 ))) AS R3
throws
java.lang.IllegalStateException: Cannot replace ARRAY with ANY at org.apache.asterix.optimizer.rules.pushdown.schema.ObjectExpectedSchemaNode.replaceChild(ObjectExpctedSchemaNode.java:70)
The reason is that irreplaceable root types doesn't ignore modifications (e.g., adding a child)