Skip to content

Commit

Permalink
Rename row number tests
Browse files Browse the repository at this point in the history
  • Loading branch information
electrum committed Jul 20, 2015
1 parent 0aee9f4 commit 3c8b32d
Showing 1 changed file with 9 additions and 5 deletions.
Expand Up @@ -2220,7 +2220,7 @@ public void testRowNumberNoOptimization()
} }


@Test @Test
public void testRowNumberUnpartitionedLimit() public void testRowNumberUnpartitionedFilter()
throws Exception throws Exception
{ {
MaterializedResult actual = computeActual("" + MaterializedResult actual = computeActual("" +
Expand All @@ -2235,7 +2235,7 @@ public void testRowNumberUnpartitionedLimit()
} }


@Test @Test
public void testRowNumberPartitionedLimit() public void testRowNumberPartitionedFilter()
throws Exception throws Exception
{ {
MaterializedResult actual = computeActual("" + MaterializedResult actual = computeActual("" +
Expand All @@ -2262,10 +2262,14 @@ public void testRowNumberPartitionedLimit()
assertTrue(all.getMaterializedRows().containsAll(actual.getMaterializedRows())); assertTrue(all.getMaterializedRows().containsAll(actual.getMaterializedRows()));
} }


@Test(timeOut = 60000) @Test
public void testRowNumberWithLimit() throws Exception public void testRowNumberUnpartitionedFilterLimit() throws Exception
{ {
assertQuery("SELECT row_number() over() as rn FROM lineitem JOIN orders ON lineitem.orderkey = orders.orderkey where orders.orderkey = 10000 limit 20"); assertQuery("" +
"SELECT row_number() OVER ()\n" +
"FROM lineitem JOIN orders ON lineitem.orderkey = orders.orderkey\n" +
"WHERE orders.orderkey = 10000\n" +
"LIMIT 20\n");
} }


@Test @Test
Expand Down

0 comments on commit 3c8b32d

Please sign in to comment.