Skip to content

Commit

Permalink
Use throws Exception instead of multiple exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sopel39 committed Aug 25, 2020
1 parent a5ecc27 commit 78a6567
Showing 1 changed file with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;
import java.util.function.Consumer;

import static com.google.common.collect.ImmutableList.toImmutableList;
Expand Down Expand Up @@ -60,7 +59,7 @@ public TestLocalDynamicFilterConsumer()

@Test
public void testSimple()
throws ExecutionException, InterruptedException
throws Exception
{
LocalDynamicFilterConsumer filter = new LocalDynamicFilterConsumer(
ImmutableMultimap.of(new DynamicFilterId("123"), new Symbol("a")),
Expand All @@ -80,7 +79,7 @@ public void testSimple()

@Test
public void testShortCircuitOnAllTupleDomain()
throws ExecutionException, InterruptedException
throws Exception
{
LocalDynamicFilterConsumer filter = new LocalDynamicFilterConsumer(
ImmutableMultimap.of(new DynamicFilterId("123"), new Symbol("a")),
Expand All @@ -107,7 +106,7 @@ public void testShortCircuitOnAllTupleDomain()

@Test
public void testMultipleProbeSymbols()
throws ExecutionException, InterruptedException
throws Exception
{
LocalDynamicFilterConsumer filter = new LocalDynamicFilterConsumer(
ImmutableMultimap.of(new DynamicFilterId("123"), new Symbol("a1"), new DynamicFilterId("123"), new Symbol("a2")),
Expand All @@ -128,7 +127,7 @@ public void testMultipleProbeSymbols()

@Test
public void testMultiplePartitions()
throws ExecutionException, InterruptedException
throws Exception
{
LocalDynamicFilterConsumer filter = new LocalDynamicFilterConsumer(
ImmutableMultimap.of(new DynamicFilterId("123"), new Symbol("a")),
Expand Down Expand Up @@ -181,7 +180,7 @@ filter2, new Symbol("b")),

@Test
public void testNone()
throws ExecutionException, InterruptedException
throws Exception
{
LocalDynamicFilterConsumer filter = new LocalDynamicFilterConsumer(
ImmutableMultimap.of(new DynamicFilterId("123"), new Symbol("a")),
Expand All @@ -201,7 +200,7 @@ public void testNone()

@Test
public void testMultipleColumns()
throws ExecutionException, InterruptedException
throws Exception
{
LocalDynamicFilterConsumer filter = new LocalDynamicFilterConsumer(
ImmutableMultimap.of(new DynamicFilterId("123"), new Symbol("a"), new DynamicFilterId("456"), new Symbol("b")),
Expand All @@ -223,7 +222,7 @@ public void testMultipleColumns()

@Test
public void testMultiplePartitionsAndColumns()
throws ExecutionException, InterruptedException
throws Exception
{
LocalDynamicFilterConsumer filter = new LocalDynamicFilterConsumer(
ImmutableMultimap.of(new DynamicFilterId("123"), new Symbol("a"), new DynamicFilterId("456"), new Symbol("b")),
Expand Down Expand Up @@ -251,7 +250,7 @@ public void testMultiplePartitionsAndColumns()

@Test
public void testCreateSingleColumn()
throws ExecutionException, InterruptedException
throws Exception
{
SubPlan subplan = subplan(
"SELECT count() FROM lineitem, orders WHERE lineitem.orderkey = orders.orderkey " +
Expand Down Expand Up @@ -296,7 +295,7 @@ public void testCreateDistributedJoin()

@Test
public void testCreateMultipleCriteria()
throws ExecutionException, InterruptedException
throws Exception
{
SubPlan subplan = subplan(
"SELECT count() FROM lineitem, partsupp " +
Expand Down Expand Up @@ -325,7 +324,7 @@ public void testCreateMultipleCriteria()

@Test
public void testCreateMultipleJoins()
throws ExecutionException, InterruptedException
throws Exception
{
SubPlan subplan = subplan(
"SELECT count() FROM lineitem, orders, part " +
Expand All @@ -350,7 +349,7 @@ public void testCreateMultipleJoins()

@Test
public void testCreateProbeSideUnion()
throws ExecutionException, InterruptedException
throws Exception
{
SubPlan subplan = subplan(
"WITH union_table(key) AS " +
Expand Down

0 comments on commit 78a6567

Please sign in to comment.