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