Add test with parameterless window function
@@ -3906,6 +3906,36 @@ public abstract class AbstractTestQueries
assertQuery(sql, "VALUES 59645.36, 59645.36");
}
+ @Test
+ public void testWindowFunctionWithoutParameters()
+ {
+ MaterializedResult actual = computeActual("SELECT count() over(partition by custkey) from orders where custkey < 3 order by custkey");
+
+ MaterializedResult expected = resultBuilder(getSession(), BIGINT)
+ .row(9L)
+ .row(9L)
+ .row(9L)
+ .row(9L)
+ .row(9L)
+ .row(9L)
+ .row(9L)
+ .row(9L)
+ .row(9L)
+ .row(10L)
+ .row(10L)
+ .row(10L)
+ .row(10L)
+ .row(10L)
+ .row(10L)
+ .row(10L)
+ .row(10L)
+ .row(10L)
+ .row(10L)
+ .build();
+
+ assertEquals(actual, expected);
+ }
+
@Test
public void testHaving()
{
