Skip to content

Commit

Permalink
Abstain from overriding @BeforeClass init method
Browse files Browse the repository at this point in the history
There is no need for that, and thus it should be avoided, as it
introduces unnecessary flow dependencies, or ordering of events. Regular
`@BeforeClass` should be used instead.
  • Loading branch information
findepi committed Jan 18, 2022
1 parent afebf3f commit 2874b92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,9 @@ protected abstract QueryRunner createQueryRunner(List<TpchTable<?>> requiredTpch
throws Exception;

@BeforeClass
@Override
public void init()
public void initTables()
throws Exception
{
super.init();
// setup partitioned fact table for dynamic partition pruning
createPartitionedLineitemTable(PARTITIONED_LINEITEM, ImmutableList.of("orderkey", "partkey", "suppkey"), "suppkey");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,9 @@ public abstract class BaseDynamicPartitionPruningTest
"optimizer.rewrite-filtering-semi-join-to-inner-join", "false");

@BeforeClass
@Override
public void init()
public void initTables()
throws Exception
{
super.init();
// setup partitioned fact table for dynamic partition pruning
createLineitemTable(PARTITIONED_LINEITEM, ImmutableList.of("orderkey", "partkey", "suppkey"), ImmutableList.of("suppkey"));
}
Expand Down

0 comments on commit 2874b92

Please sign in to comment.