[
https://issues.apache.org/jira/browse/PHOENIX-1580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14395208#comment-14395208
]
Alicia Ying Shu commented on PHOENIX-1580:
------------------------------------------
[~jamestaylor] In MergeSortTopNResultIterator.java
public MergeSortTopNResultIterator(ResultIterators iterators, Integer
limit, List<OrderByExpression> orderByColumns, boolean
clientSideOnly) {
super(iterators);
this.limit = limit == null ? -1 : limit;
this.orderByColumns = orderByColumns;
this.clientSideOnly = clientSideOnly;
}
@Override
public void explain(List<String> planSteps) {
resultIterators.explain(planSteps);
if (!clientSideOnly) {
planSteps.add(" SERVER" + (limit == -1 ? "" : " TOP " + limit +
" ROW" + (limit == 1 ? "" : "S")) + " SORTED BY " + orderByColumns.toString());
planSteps.add("CLIENT MERGE SORT");
}
}
In UnionPlan:
if (isOrdered) { // TopN
scanner = new MergeSortTopNResultIterator(iterators, limit,
orderBy.getOrderByExpressions(), true);
} else {
> Support UNION ALL
> -----------------
>
> Key: PHOENIX-1580
> URL: https://issues.apache.org/jira/browse/PHOENIX-1580
> Project: Phoenix
> Issue Type: Improvement
> Reporter: Alicia Ying Shu
> Assignee: Alicia Ying Shu
> Attachments: PHOENIX-1580-grammar.patch, Phoenix-1580-v1.patch,
> Phoenix-1580-v2.patch, Phoenix-1580-v3.patch, Phoenix-1580-v4.patch,
> Phoenix-1580-v5.patch, Phoenix-1580-v6.patch, Phoenix-1580-v7.patch,
> Phoenix-1580-v8.patch, phoenix-1580-v1-wipe.patch, phoenix-1580.patch,
> unionall-wipe.patch
>
>
> Select * from T1
> UNION ALL
> Select * from T2
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)