[
https://issues.apache.org/jira/browse/PHOENIX-1580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14391725#comment-14391725
]
Maryann Xue commented on PHOENIX-1580:
--------------------------------------
I am very sure I can pass all your test cases at least. My patch already
includes the below lines:
{code}
@@ -58,7 +58,7 @@ public class ParseNodeRewriter extends
TraverseAllParseNodeVisitor<ParseNode> {
public static SelectStatement rewrite(SelectStatement statement,
ParseNodeRewriter rewriter) throws SQLException {
Map<String,ParseNode> aliasMap = rewriter.getAliasMap();
TableNode from = statement.getFrom();
- TableNode normFrom = from.accept(new TableNodeRewriter(rewriter));
+ TableNode normFrom = from == null ? null : from.accept(new
TableNodeRewriter(rewriter));
ParseNode where = statement.getWhere();
ParseNode normWhere = where;
if (where != null) {
{code}
> Support UNION ALL
> -----------------
>
> Key: PHOENIX-1580
> URL: https://issues.apache.org/jira/browse/PHOENIX-1580
> Project: Phoenix
> Issue Type: Bug
> 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-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)