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

Preston Carman commented on VXQUERY-147:
----------------------------------------

For Q10, I believe the issue is because of the distinct-values function. 
 - First the ASSIGN distinct-values separates the UNNEST operator from the 
SUBPLAN with an AGGREGATE sequence expression.
 - Second the ASSIGN distinct-values expression could be translated to a more 
efficient parallel DISTINCT operator.
The solution for this query needs some discussion. What is the correct plan 
translation of distinct-values? Can the distinct values be moved in the query 
plan (say below the unnest operator).

> [ERROR] Rewrite Rule for Collection
> -----------------------------------
>
>                 Key: VXQUERY-147
>                 URL: https://issues.apache.org/jira/browse/VXQUERY-147
>             Project: VXQuery
>          Issue Type: Bug
>            Reporter: Shivani Mall
>              Labels: gsoc2015, xmark
>         Attachments: collectn_rr_q10_q14.txt
>
>
> There is some error in the subplan while dealing with the rewrite rule for 
> collection. This makes XMark queries 10 and 14 to fail. 
> Error and Optimized Query plans for both the queries attached.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to