Skip to content

Commit

Permalink
[FLINK-24480][table-planner] Do not discard exception in test
Browse files Browse the repository at this point in the history
This closes apache#17469
  • Loading branch information
Airblader authored and xintongsong committed Oct 14, 2021
1 parent 77b8e9c commit 66e35c9
Showing 1 changed file with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,10 @@ public void testManyFields() {
.mapToObj(i -> new VarCharType())
.toArray(LogicalType[]::new);

RecordEqualiser equaliser;
try {
equaliser =
new EqualiserCodeGenerator(fieldTypes)
.generateRecordEqualiser("ManyFields")
.newInstance(Thread.currentThread().getContextClassLoader());
} catch (Exception e) {
Assert.fail("Expected compilation to succeed");

// Unreachable
throw e;
}
final RecordEqualiser equaliser =
new EqualiserCodeGenerator(fieldTypes)
.generateRecordEqualiser("ManyFields")
.newInstance(Thread.currentThread().getContextClassLoader());

final StringData[] fields =
IntStream.range(0, 999)
Expand Down

0 comments on commit 66e35c9

Please sign in to comment.