[ 
https://issues.apache.org/jira/browse/OAK-7131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16327016#comment-16327016
 ] 

Vikas Saurabh commented on OAK-7131:
------------------------------------

[~tmueller],
{noformat}
+            union.orderList = orderList;
{noformat}
I was also thinking the same but got confused about "is it ok to assume that we 
would never support individual statements in a UNION to have their own ORDER 
BY". Btw, I don't mean that we should not fix it this way - but I would 
probably want to add some way to indicate that we need to update propogation of 
orderlist if we ever support different order list for sub-statements (btw, 
since this code path only gets hit during optimize - so, this whole concern 
could very well be a figment of my imagination).

> xpath to sql2 conversion drops order by clause for some cases
> -------------------------------------------------------------
>
>                 Key: OAK-7131
>                 URL: https://issues.apache.org/jira/browse/OAK-7131
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>            Reporter: Vikas Saurabh
>            Assignee: Thomas Mueller
>            Priority: Critical
>             Fix For: 1.10
>
>
> When xpath has OR-ed primary type and a couple of OR-ed property constraint 
> (e.g. \[0]), the converted sql statement doesn't get ordering clause.
> \[0]:
> {noformat}
> //(element(*, type1) | element(*, type2))[@a='b' or @c='d'] order by @foo
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to