Github user maryannxue commented on a diff in the pull request:

    https://github.com/apache/incubator-phoenix/pull/31#discussion_r11857047
  
    --- Diff: 
phoenix-core/src/main/java/org/apache/phoenix/compile/QueryCompiler.java ---
    @@ -290,6 +292,9 @@ protected BasicQueryPlan 
compileSingleQuery(StatementContext context, SelectStat
             ColumnResolver resolver = context.getResolver();
             TableRef tableRef = context.getCurrentTable();
             PTable table = tableRef.getTable();
    +        if (table.getType() == PTableType.SUBQUERY)
    +            throw new SQLFeatureNotSupportedException("Complex nested 
queries not supported.");
    --- End diff --
    
    No, this is just subqueries (derived tables) in the from clause that 
SubselectRewriter is unable to flatten. We don't have parser support for 
correlated subqueries so far.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to