Description
In OAK-4265 a limited form of "union" for XPath was added. However, union queries that contain "or" are not converted properly. For example:
//*[@a=1 or @b=1] select [jcr:path], [jcr:score], * from [nt:base] as a where [a] = 1 union select [jcr:path], [jcr:score], * from [nt:base] as a where [b] = 1
but
(//*[@a=1 or @b=1] | //*[@c=1]) select [jcr:path], [jcr:score], * from [nt:base] as a where [a] = 1 or [b] = 1 union select [jcr:path], [jcr:score], * from [nt:base] as a where [c] = 1
It should be converted to:
select [jcr:path], [jcr:score], * from [nt:base] as a where [a] = 1 union select [jcr:path], [jcr:score], * from [nt:base] as a where [b] = 1 union select [jcr:path], [jcr:score], * from [nt:base] as a where [c] = 1
Attachments
Issue Links
- relates to
-
OAK-4265 XPath: support limited form of "union"
- Closed