Fix naming for spilled aggregation tests
methods should be lower camel case, and tests should begin with the
word "test"
*/
package com.facebook.presto.tests;
+import com.facebook.presto.execution.TestEventListenerPlugin;
import com.facebook.presto.testing.QueryRunner;
import org.testng.annotations.Test;
@@ -27,13 +28,13 @@ public class TestSpilledAggregations
}
@Test
- public void OrderBySpillingBasic()
+ public void testOrderBySpillingBasic()
{
assertQuery("SELECT orderpriority, custkey, array_agg(orderstatus ORDER BY orderstatus) FROM orders GROUP BY orderpriority, custkey ORDER BY 1, 2");
}
@Test
- public void OrderBySpillingGroupingSets()
+ public void testOrderBySpillingGroupingSets()
{
assertQuery(
"SELECT orderpriority, custkey, array_agg(orderstatus ORDER BY orderstatus) FROM orders WHERE orderkey IN (1, 2, 3, 4, 5) " +
@@ -44,26 +45,26 @@ public class TestSpilledAggregations
}
@Test
- public void DistinctSpillingBasic()
+ public void testDistinctSpillingBasic()
{
// the sum() is necessary so that the aggregation isn't optimized into multiple aggregation nodes
assertQuery("SELECT custkey, sum(custkey), count(DISTINCT orderpriority) FILTER(WHERE orderkey > 5) FROM orders GROUP BY custkey ORDER BY 1");
}
@Test
- public void DistinctAndOrderBySpillingBasic()
+ public void testDistinctAndOrderBySpillingBasic()
{
assertQuery("SELECT custkey, orderpriority, sum(custkey), array_agg(DISTINCT orderpriority ORDER BY orderpriority) FROM orders GROUP BY custkey, orderpriority ORDER BY 1, 2");
}
@Test
- public void DistinctSpillingCount()
+ public void testDistinctSpillingCount()
{
assertQuery("SELECT orderpriority, custkey, sum(custkey), count(DISTINCT totalprice) FROM orders GROUP BY orderpriority, custkey ORDER BY 1, 2");
}
@Test
- public void DistinctSpillingGroupingSets()
+ public void testDistinctSpillingGroupingSets()
{
assertQuery(
"SELECT custkey, count(DISTINCT orderpriority) FROM orders WHERE orderkey IN (1, 2, 3, 4, 5) " +
@@ -73,13 +74,13 @@ public class TestSpilledAggregations
}
@Test
- public void TestNonGroupedOrderBySpill()
+ public void testNonGroupedOrderBySpill()
{
assertQuery("SELECT array_agg(orderstatus ORDER BY orderstatus) FROM orders");
}
@Test
- public void TestMultipleDistinctAggregations()
+ public void testMultipleDistinctAggregations()
{
assertQuery("SELECT custkey, count(DISTINCT orderpriority), count(DISTINCT orderstatus), count(DISTINCT totalprice), count(DISTINCT clerk) FROM orders GROUP BY custkey");
}
