Skip to content

Commit

Permalink
Fixed failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
malhotrashivam committed Feb 26, 2024
1 parent 238f5f5 commit 7a3652d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ public void readChangedUnderlyingFileTests() {
readChangedUnderlyingFileTestsImpl(MULTI_WRITER);
}

public void readChangedUnderlyingFileTestsImpl(TestParquetTableWriter writer) {
private void readChangedUnderlyingFileTestsImpl(TestParquetTableWriter writer) {
// Write a table to parquet file and read it back
final Table tableToSave = TableTools.emptyTable(5).update("A=(int)i", "B=(long)i", "C=(double)i");
final String filename = "readChangedUnderlyingFileTests.parquet";
Expand All @@ -1439,9 +1439,9 @@ public void readChangedUnderlyingFileTestsImpl(TestParquetTableWriter writer) {

// Read back fromDisk. Since the underlying file has changed, we expect this to fail.
try {
fromDisk.coalesce();
TestCase.fail("Expected TableDataException");
} catch (TableDataException ignored) {
fromDisk.select();
TestCase.fail("Expected exception");
} catch (RuntimeException ignored) {
// expected
}
}
Expand Down

0 comments on commit 7a3652d

Please sign in to comment.