drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gparai <...@git.apache.org>
Subject [GitHub] drill pull request #529: [DRILL-2330] Add support for nested aggregates in D...
Date Thu, 14 Jul 2016 20:35:54 GMT
Github user gparai commented on a diff in the pull request:

    https://github.com/apache/drill/pull/529#discussion_r70878774
  
    --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/TestWindowFunctions.java
---
    @@ -844,4 +844,37 @@ public void testStatisticalWindowFunctions() throws Exception {
             .build()
             .run();
       }
    +
    +  @Test // DRILL-2330
    +  public void testNestedAggregates() throws Exception {
    +
    +    final String query = "select sum(min(l_extendedprice))" +
    +            " over (partition by l_suppkey order by l_suppkey) as totprice" +
    +            " from cp.`tpch/lineitem.parquet` where l_suppkey <= 10 group by l_suppkey
order by 1 desc";
    +
    +    // Validate the plan
    +    final String[] expectedPlan = {"Window.*partition \\{0\\} order by \\[0\\].*SUM\\(\\$1\\).*",
    +            ".*SelectionVectorRemover.*",
    --- End diff --
    
    Done


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message