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

    https://github.com/apache/incubator-phoenix/pull/31#discussion_r11864465
  
    --- 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 --
    
    I will file a JIRA. As to examples, actually all those counter cases in 
DerivedTableIT throw exception from here.


---
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